예제 #1
0
 void Update()
 {
     if (autoCountPath)
     {
         counter.FindPath(transform, target);
     }
     else
     {
         if (Input.GetButtonDown("Jump"))
         {
             counter.FindPath(transform, target);
         }
     }
 }
예제 #2
0
 void Update()
 {
     if (Input.GetMouseButtonDown(0))
     {
         counter.FindPath(transform, Camera.main.ScreenToWorldPoint(Input.mousePosition));
     }
 }