public void GameStart(int id) { NowStage = id; uIMain = (UIMain)UIKit.OpenPanel("UIMain"); this.Delay(0.1f, () => { CreateGrass(); CreateCar(); SetOrder(id); MoveCam(); }); }
public void NextStage() { NowStage = NowStage + 1; QEventSystem.SendEvent(EventDefine.MainGameEvent.StageEnd); MoveCam(-1); uIMain.FadeClose(); this.Delay(1.8f, () => { if (StageDefine.Instance.stages.Length > NowStage) { uIMain = (UIMain)UIKit.OpenPanel("UIMain"); this.Delay(0.2f, () => { CreateGrass(); CreateCar(); SetOrder(NowStage); MoveCam(); }); } else { UIKit.OpenPanel <UISTAFF>(); } }); }
private void BindUI() { form = (UIMain)UIKit.GetPanel("UIMain"); holder = form.GetComponentInChildren <OrderHolder>(); }