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