Exemplo n.º 1
0
        //        public IEnumerator SkillUsing()
        //        {
        //            float timer = 0.0f;
        //            this.View.Character.Rate = 0.0f;
        //
        //            while (timer < this.View.Character.CurrentSkill.SkillTime)
        //            {
        //                timer += Time.deltaTime;
        //                yield return null;
        //            }
        //            this.View.Character.Rate = 1.0f;
        //            this.View.Character.CurrentSkill.SkillExit();
        //            this.View.Character.SetCurrentSkill(null);
        //        }

        void OnTriggerEnter(Collider other)
        {
            if (other.tag.Equals("TeleportationCircle"))
            {
                ChangeSceneSignal.Dispatch("Scene02");
            }
        }
Exemplo n.º 2
0
 public void StartScene(GameObject source, ChangeSceneSignal changeSceneSignal, ApplicationState state)
 {
     changeSceneSignal.Dispatch(source, _sceneName);
 }
Exemplo n.º 3
0
 public override void Execute()
 {
     ChangeSceneSignal.Dispatch(View, "LoadGame");
 }
Exemplo n.º 4
0
 private void OnClickCreatNewGame()
 {
     ChangeSceneSignal.Dispatch("Scene01");
 }
Exemplo n.º 5
0
 private void ReturnToStarScene()
 {
     ChangeSceneSignal.Dispatch("StartScene");
 }