细节调整
This commit is contained in:
1 parent
ac59808915
commit
1f3485846f
14 files changed
+2617
-2537
No files matched your search
@@ -33,13 +33,10 @@ public class RaceButtonGroupScript : MonoBehaviour
|
||||
if (!map.HasJoin)
|
||||
{
|
||||
parent.GetComponent<RaceItemScript>().Join();
|
||||
}else
|
||||
{
|
||||
App.RouteIdParam = map.RouteId;
|
||||
App.CompetionId = map.Id;
|
||||
SceneManager.LoadScene("Ride");
|
||||
}
|
||||
Debug.Log(map);
|
||||
App.RouteIdParam = map.RouteId;
|
||||
App.CompetionId = map.Id;
|
||||
SceneManager.LoadScene("Ride");
|
||||
}
|
||||
void GoCancel()
|
||||
{
|
||||
|
||||
@@ -6,6 +6,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class RaceHomeScript : RaceScript
|
||||
@@ -114,7 +115,9 @@ public class RaceHomeScript : RaceScript
|
||||
}
|
||||
void OnBannerClick(MapCompetition map)
|
||||
{
|
||||
Debug.Log("banner點擊");
|
||||
App.RouteIdParam = map.RouteId;
|
||||
App.CompetionId = map.Id;
|
||||
SceneManager.LoadScene("Ride");
|
||||
}
|
||||
private async Task Login()
|
||||
{
|
||||
|
||||
@@ -212,9 +212,9 @@ public class RaceItemScript : MonoBehaviour, IPointerExitHandler, IPointerEnterH
|
||||
base.StartRide(baseEvent);
|
||||
}
|
||||
*/
|
||||
async public void Join()
|
||||
public void Join()
|
||||
{
|
||||
var res = await ConfigHelper.mapCompetitionApi.ApplyMapCompetition(mapCompetition.Id);
|
||||
var res = ConfigHelper.mapCompetitionApi.ApplyMapCompetition(mapCompetition.Id);
|
||||
if (res.result)
|
||||
{
|
||||
mapCompetition.HasJoin = true;
|
||||
@@ -225,9 +225,9 @@ public class RaceItemScript : MonoBehaviour, IPointerExitHandler, IPointerEnterH
|
||||
Utils.showToast(null, "Successful application!", type: 1);
|
||||
}
|
||||
}
|
||||
async public void CancelJoin()
|
||||
public void CancelJoin()
|
||||
{
|
||||
var res = await ConfigHelper.mapCompetitionApi.CancelMapCompetition(mapCompetition.Id);
|
||||
var res = ConfigHelper.mapCompetitionApi.CancelMapCompetition(mapCompetition.Id);
|
||||
if (res.result)
|
||||
{
|
||||
mapCompetition.HasJoin = false;
|
||||
|
||||
Reference in new issue
Block a user