修改细节
This commit is contained in:
1 parent
2663068574
commit
1254414415
35 files changed
+3557
-3071
No files matched your search
@@ -13,8 +13,9 @@ public class RaceModalScript : RaceScript
|
||||
UIManager.AddEvent(transform.Find("Container/Exit").gameObject, UnityEngine.EventSystems.EventTriggerType.PointerClick, b =>
|
||||
{
|
||||
//停止计时器
|
||||
UIManager.CloseModal();
|
||||
gameObject.SetActive(false);
|
||||
transform.GetComponent<RaceScript>().SetCurrentItem(null);
|
||||
_parent.GetComponent<RaceItemScript>().Refresh();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -23,8 +24,14 @@ public class RaceModalScript : RaceScript
|
||||
{
|
||||
|
||||
}
|
||||
public void Initial(MapCompetition mapCompetition)
|
||||
public override void Show()
|
||||
{
|
||||
base.Show();
|
||||
}
|
||||
Transform _parent;
|
||||
public void Initial(Transform parent, MapCompetition mapCompetition)
|
||||
{
|
||||
_parent = parent;
|
||||
var item = transform.Find("Container/Main/ItemSmall-Mobile");
|
||||
|
||||
item.GetComponent<RaceItemScript>().Initial(mapCompetition, transform,"modal");
|
||||
|
||||
Reference in new issue
Block a user