//        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");
            }
        }
Exemple #2
0
 public GameController(IGameManager gameManager,
                       ChangeSceneSignal changeSceneSignal,
                       GameStatusChangedSignal gameStatusChangedSignal,
                       AreaClickedSignal areaClickedSignal,
                       CurrentMarkChangedSignal currentMarkChangedSignal)
 {
     _gameManager              = gameManager;
     _changeSceneSignal        = changeSceneSignal;
     _areaClickedSignal        = areaClickedSignal;
     _gameStatusChangedSignal  = gameStatusChangedSignal;
     _currentMarkChangedSignal = currentMarkChangedSignal;
 }
Exemple #3
0
        public Storyboard(ChangeSceneSignal changeSceneSignal, ApplicationState state)
        {
            ChangeSceneSignal = changeSceneSignal;
            State             = state;

            _scenes = new LinkedList <IStoryboardScene> {
                new StoryboardScene("MaleSoldierReport", "male_soldier_report"),
                new StoryboardScene("FemaleSoldierReport", "female_soldier_report"),
                new StoryboardScene("LiatJanekPrep", "liat_janek_prep"),
                new StoryboardScene("LiatAudricH2H", "liat_audric_h2h"),
                new StoryboardScene("LiatAudricBalcony", "liat_audric_balcony"),
                new StoryboardScene("LiatAudricOverlook", "liat_audric_overlook"),
                new BattleStoryboardScene("Chapter1", "chapter_1_battle", new Rout()),
                new BattleStoryboardScene("Chapter2", "chapter_2_battle", new Rout())
            };
        }
 public void StartScene(GameObject source, ChangeSceneSignal changeSceneSignal, ApplicationState state)
 {
     changeSceneSignal.Dispatch(source, _sceneName);
 }
Exemple #5
0
 public override void Execute()
 {
     ChangeSceneSignal.Dispatch(View, "LoadGame");
 }
Exemple #6
0
 private void OnClickCreatNewGame()
 {
     ChangeSceneSignal.Dispatch("Scene01");
 }
 public void Init(ChangeSceneSignal changeSceneSignal, ShowTextSignal showTextSignal)
 {
     _changeSceneSignal = changeSceneSignal;
     _showTextSignal    = showTextSignal;
 }
Exemple #8
0
 public AppManager(ChangeSceneSignal changeScene)
 {
     this.changeScene = changeScene;
 }
Exemple #9
0
 public void LateDispose()
 {
     _changeSceneSignal -= OnSceneChange;
     _areaClickedSignal -= OnAreaClicked;
     _resetSignal       -= OnReset;
 }
Exemple #10
0
 public void Initialize()
 {
     _changeSceneSignal += OnSceneChange;
     _areaClickedSignal += OnAreaClicked;
     _resetSignal       += OnReset;
 }
Exemple #11
0
 private void ReturnToStarScene()
 {
     ChangeSceneSignal.Dispatch("StartScene");
 }