public override void OnBehaviourPlay(Playable playable, FrameData info) { if (agent != null && target != null) { agent.enabled = true; agent.SetDestination2D(target.position); } base.OnBehaviourPlay(playable, info); }