细节调整
This commit is contained in:
1 parent
ac59808915
commit
1f3485846f
14 files changed
+2617
-2537
No files matched your search
@@ -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