public void QuitStage() { QEventSystem.SendEvent(EventDefine.MainGameEvent.StageEnd); MoveCam(-1); uIMain.FadeClose(); UIKit.OpenPanel("UISelectStage"); }
protected override void RegisterUIEvent() { Button.OnClickAsObservable().Where(x => InputField.text != null).Subscribe( x => { QEventSystem.SendEvent(101); PCClient.Instance.ConnectToMobile(InputField.text, (z, y) => { }); } ); }
void Start() { ResMgr.Init(); UIMgr.OpenPanel <UIConnect>(UILevel.PopUI); QEventSystem.RegisterEvent(101, (x, y) => { UIMgr.ClosePanel <UIConnect>(); UIMgr.OpenPanel <UIMsg>(); }); }
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>(); } }); }
public void RegetsSelfEvent() { RegisterEvent(Camera_E.Begin); QEventSystem.RegisterEvent(Tool.GameEvent.E_Mouse, camerarotatesphere.MouseCallBack); }
// Start is called before the first frame update public virtual void Start() { QEventSystem.RegisterEvent(EventDefine.MainGameEvent.StageEnd, OnEvent); }
public virtual void OnDestroy() { QEventSystem.UnRegisterEvent(EventDefine.MainGameEvent.StageEnd, OnEvent); }
void Start() { QEventSystem.RegisterEvent(UIEvent.A, Func0); QEventSystem.UnRegisterEvent(XXEvent.A, Func0); QEventSystem.SendEvent(UIEvent.A); }
void Start() { QEventSystem.RegisterEvent(TestEvent.TestOne, GetEvent); }