Esempio n. 1
0
 public void TrackActor(string name)
 {
     actorToTrack = SceneObjects.GetActorFromActorName(name);
     if (actorToTrack != null)
     {
         //got name
         StartCoroutine(MoveBox());
     }
     else
     {
         // did not get name
         if (defaultLocation == null)
         {
             SetDesiredWorldPosition(Vector2.zero);
         }
         else
         {
             SetDesiredWorldPosition(defaultLocation.position);
         }
     }
 }