Esempio n. 1
0
    public override void Execute(Npc npc)
    {
        Vector3 offset = new Vector3(Random.Range(-leaderOffset, leaderOffset), 0, Random.Range(-leaderOffset, leaderOffset));

        npc.Destination = npc.Leader.transform.position + offset;
        npc.CheckCollider();
    }