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(); }
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(); }