Esempio n. 1
0
    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);
    }
Esempio n. 2
0
    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);
    }