예제 #1
0
 void Update()
 {
     if (running)
     {
         Debug.Log("Runnings: " + targetPosition.x);
         transform.position = Vector3.MoveTowards(transform.position, targetPosition, speed);
         if (transform.position == targetPosition)
         {
             introManager.LoadGameLevel();
         }
     }
 }