예제 #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);
    }
예제 #2
0
파일: Minions.cs 프로젝트: tentacode/cabala
    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);
    }