예제 #1
0
 public void Push(Vector3 dir)
 {
     stepController.SetNextLocation(dir);
     //if (Input.GetKeyDown(KeyCode.W))
     //{
     //    stepController.SetNextLocation(transform.TransformPoint(Vector3.forward));
     //}
     //else if (Input.GetKeyDown(KeyCode.S))
     //{
     //    stepController.SetNextLocation(transform.TransformPoint(Vector3.back));
     //}
     //else if (Input.GetKeyDown(KeyCode.A))
     //{
     //    stepController.SetNextLocation(transform.TransformPoint(Vector3.left));
     //}
     //else if (Input.GetKeyDown(KeyCode.D))
     //{
     //    stepController.SetNextLocation(transform.TransformPoint(Vector3.right));
     //}
 }