Пример #1
0
 public PhaseStateMachine(BattleManager manager, bool isPlayer)
 {
     stateMachine = new StateMachine <PhaseStateName>();
     share        = new PhaseShare();
     share.cache.CacheState(new SelectChip(manager, share, isPlayer));
     share.cache.CacheState(new SetFallPoint(manager, share, isPlayer));
     share.cache.CacheState(new Attack(manager, share, isPlayer));
     share.cache.CacheState(new PhaseEnd(manager, share, isPlayer));
 }
Пример #2
0
 public PhaseStateBase(BattleManager manager, PhaseShare share, bool isPlayer)
 {
     this.manager  = manager;
     this.share    = share;
     this.isPlayer = isPlayer;
 }