void startTurnMonster() { // monster will attack! // AI goes here. // just attack the first one for now Debug.Log("Enemy attacks!"); Attack(activePlayer, _instigatorBattlers[Random.Range(0, _instigatorBattlers.Count)]); Audio.AudioInstance.PlaySFX(_oppositionBattler.GetAttackSound()); StartCoroutine(endTurn()); }
void setOpposition(MonsterType t) { _oppositionBattler = _MonsterManager.NewMonster(t); Audio.AudioInstance.PlaySFX(_oppositionBattler.GetAttackSound()); _BattleUnitPositionManager.SetOpposition(t, _oppositionBattler); }