比赛;编辑页面
This commit is contained in:
1 parent
85130ce6c3
commit
3ec6fd0569
56 files changed
+16371
-2749
No files matched your search
@@ -0,0 +1,36 @@
|
||||
using Assets.Scripts;
|
||||
using Assets.Scripts.Apis.Models;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class RaceModalScript : RaceScript
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
UIManager.AddEvent(transform.Find("Container/Exit").gameObject, UnityEngine.EventSystems.EventTriggerType.PointerClick, b =>
|
||||
{
|
||||
//停止计时器
|
||||
UIManager.CloseModal();
|
||||
transform.GetComponent<RaceScript>().SetCurrentItem(null);
|
||||
});
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
public void Initial(MapCompetition mapCompetition)
|
||||
{
|
||||
var item = transform.Find("Container/Main/ItemSmall-Mobile");
|
||||
|
||||
item.GetComponent<RaceItemScript>().Initial(mapCompetition, transform,"modal");
|
||||
//开始计时器
|
||||
transform.GetComponent<RaceScript>().SetCurrentItem(item);
|
||||
Utils.DisplayImage(transform.Find("Container/Main/Left").GetComponent<RawImage>(),
|
||||
mapCompetition.RouteCover, true);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user