Exemplo n.º 1
0
        public override void OnRegister()
        {
            RegisterSkillSignal.Dispatch(this.gameObject, View.SkillTreeID);
            //View.Character.UseSkill = () => StartCoroutine(SkillUsing());
//            View.BeAttackedSignal.AddListener(BeAttacked);
//            View.UseSkillSignal.AddListener(UseSkill);
        }
Exemplo n.º 2
0
        public override void OnRegister()
        {
            ResGetPlayerTransformSignal.AddListener(SetPlayerPosition);
            PlayerView.EscSignal.AddListener(KeyEscDown);
            PlayerView.UseSkillSignal.AddListener(UseSkill);
            FinishTalkSignal.AddListener(TalkFinish);
            ResGetCharaInfoSignal.AddListener(GetCharaInfo);
            RegisterSkillSignal.Dispatch(this.gameObject, PlayerView.SkillTreeID);

            ReqGetPlayerTransformSignal.Dispatch();
            mTimer = 0;
            PlayerView.Character.UseSkill = () => StartCoroutine(SkillUsing());
        }
Exemplo n.º 3
0
        public override void OnRegister()
        {
            this.View.Player = new Player(this.gameObject);
            InitPlayerSignal.Dispatch(this.View.Player);
            MYXZUIManager.Instance.PushPanel(UIPanelType.WorldSpaceBackGroundPanel);
            ResGetPlayerTransformSignal.AddListener(SetPlayerPosition);
            View.EscSignal.AddListener(KeyEscDown);
//            View.UseSkillSignal.AddListener(UseSkill);
//            View.BeAttackedSignal.AddListener(BeAttacked);
            FinishTalkSignal.AddListener(TalkFinish);
            ResGetCharaInfoSignal.AddListener(GetCharaInfo);
            RegisterSkillSignal.Dispatch(this.gameObject, View.SkillTreeID);

//            ReqGetPlayerTransformSignal.Dispatch();
            //            View.Character.UseSkill = () => StartCoroutine(SkillUsing());
//            ReqGetCharacterInfoSignal.Dispatch();
        }