示例#1
0
 void Update()
 {
     if (CurrentPhase != null && CurrentPhase.IsOver())
     {
         CurrentPhase.Finish();
         CurrentPhase = CurrentPhase.GoToNext();
         CurrentPhase.Execute(this);
     }
 }
示例#2
0
        private void Start()
        {
            ShouldReload = false;
            Battle       = new Battle();
            Battle.Init();
            PlayerCharacter.Init(MonsterSpawner, Battle.Player, StatsPanelController);
            EnemyCharacter.Init(MonsterSpawner, Battle.Enemy, StatsPanelController);
            StatsPanelController.gameObject.SetActive(false);

            CurrentPhase = new DraftPhase();
            CurrentPhase.Execute(this);
        }