Example #1
0
 void Update()
 {
     if (Neutron.IsMine(isMine))
     {
         if (Input.GetMouseButtonDown(0))
         {
             if (Physics.Raycast(Camera.main.ScreenPointToRay(Input.mousePosition), out RaycastHit hit, 500))
             {
                 if (hit.transform.CompareTag("ground"))
                 {
                     Neutron.MoveWithMousePointer(hit.point);
                 }
             }
         }
     }
 }