public void SetTarget(Transform target) { this.agent.enabled = true; this.enabled = true; this.DestinationReached = null; this.target = target; Delay = true; }
public void SetTarget(Transform target, DestinationReachedHandler callback) { SetTarget(target); this.DestinationReached = callback; }