public void LaunchFight(Minions otherFighter) { if (!CanRun) { return; } if (state == MinionState.fighting) { return; } opponent = otherFighter; opponent.opponent = this; transform.LookAt(opponent.transform); opponent.transform.LookAt(transform); setupFight(); opponent.setupFight(); Invoke("Attack", minionsInformations.firstAttackSpeed); }
public void LaunchFight(Minions otherFighter) { if (!CanRun) { return; } if (state == MinionState.fighting) { return; } opponent = otherFighter; opponent.opponent = this; transform.LookAt(opponent.transform); opponent.transform.LookAt(transform); setupFight(); opponent.setupFight(); Invoke("Attack", minionsInformations.firstAttackSpeed); }