void Aggro()
    {
        if (status.IsDead() || status.IsAggro())
        {
            return;
        }

        status.AggroOnPlayer();
    }
Beispiel #2
0
    void Aggro()
    {
        navAgent.SetDestination(player.position);
        if (status.IsDead() || status.IsAggro())
        {
            return;
        }

        status.AggroOnPlayer();
        navAgent.Resume();
    }