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()); }
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(); }