private void OnChangeTurn(PlayerTurn m_Turn) { if (ChangeTurn != null) { ChangeTurn.Invoke(m_Turn); } }
private void SwitchTurn() { if (_currentTurn == Turn.PLAYER) { _currentTurn = Turn.OPPONENT; } else { _currentTurn = Turn.PLAYER; } ChangeTurn.Invoke(_currentTurn); }
public Battle(Pokemon playerPokemon, Pokemon opponentPokemon) { this.playerPokemon = playerPokemon; this.opponentPokemon = opponentPokemon; combatText = new CombatTextManager(this); animationManager = new AnimationManager(this); intro = new Intro(this); selectAction = new SelectAction(this); selectMove = new SelectMove(this); changeAction = new ChangeTurn(this); end = new End(this); playerTurn = new PlayerTurn(this); opponentTurn = new OpponentTurn(this); curentState = intro; }