public bool AttackAsPair(AIResponseManager responseManager) { Debug.Log("------ATTACK PAIR----"); if (creatures[0] == null && creatures[1] == null) { return(false); } bool validAttack = false; if (creatures[0] != null) { if (!responseManager.Attack(creatures[0], 1)) { responseManager.Move(creatures[0]); } else { validAttack = true; } } if (creatures[1] != null) { if (!responseManager.Attack(creatures[1], 1)) { responseManager.Move(creatures[1]); } else { validAttack = true; } } return(validAttack); }
public bool AttackSingle(CreatureBase _creature, AIResponseManager responseManager) { if (responseManager.Attack(creatures[1], 1)) { return(true); } else { return(false); } }