public override void Execute()
    {
        _seek.Execute(zombie.transform);

        if (_seek.GetDistance(zombie.transform) < 5)
        {
            zombie.ScareHuman();
        }
    }
Exemple #2
0
    public override void Execute()
    {
        Transform transform = _npc.GetTransform();

        if (_seek.GetDistance(transform) < 2)
        {
            SeekPunto(_puntoProvider.getDiferentPunto(_punto));
        }
        _seek.Execute(transform);
        base.Execute();
    }