示例#1
0
    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());
    }
示例#2
0
 void setOpposition(MonsterType t)
 {
     _oppositionBattler = _MonsterManager.NewMonster(t);
     Audio.AudioInstance.PlaySFX(_oppositionBattler.GetAttackSound());
     _BattleUnitPositionManager.SetOpposition(t, _oppositionBattler);
 }
示例#3
0
	void setOpposition(MonsterType t) {
        _oppositionBattler = _MonsterManager.NewMonster(t);
		Audio.AudioInstance.PlaySFX(_oppositionBattler.GetAttackSound());
        _BattleUnitPositionManager.SetOpposition(t, _oppositionBattler);
		
	}