示例#1
0
 public void QuitStage()
 {
     QEventSystem.SendEvent(EventDefine.MainGameEvent.StageEnd);
     MoveCam(-1);
     uIMain.FadeClose();
     UIKit.OpenPanel("UISelectStage");
 }
示例#2
0
        protected override void RegisterUIEvent()
        {
            Button.OnClickAsObservable().Where(x => InputField.text != null).Subscribe(

                x => { QEventSystem.SendEvent(101); PCClient.Instance.ConnectToMobile(InputField.text, (z, y) => { }); }

                );
        }
示例#3
0
    void Start()
    {
        ResMgr.Init();

        UIMgr.OpenPanel <UIConnect>(UILevel.PopUI);

        QEventSystem.RegisterEvent(101, (x, y) => { UIMgr.ClosePanel <UIConnect>(); UIMgr.OpenPanel <UIMsg>(); });
    }
示例#4
0
 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);
    }
示例#6
0
 // Start is called before the first frame update
 public virtual void Start()
 {
     QEventSystem.RegisterEvent(EventDefine.MainGameEvent.StageEnd, OnEvent);
 }
示例#7
0
 public virtual void OnDestroy()
 {
     QEventSystem.UnRegisterEvent(EventDefine.MainGameEvent.StageEnd, OnEvent);
 }
示例#8
0
 void Start()
 {
     QEventSystem.RegisterEvent(UIEvent.A, Func0);
     QEventSystem.UnRegisterEvent(XXEvent.A, Func0);
     QEventSystem.SendEvent(UIEvent.A);
 }
示例#9
0
 void Start()
 {
     QEventSystem.RegisterEvent(TestEvent.TestOne, GetEvent);
 }