Пример #1
0
 public bool HandleRaycast(PlayerController3D controller)
 {
     if (Input.GetMouseButton(0))
     {
         Pickup(controller.GetComponent <Fighter>());
     }
     return(true);
 }
Пример #2
0
 public bool HandleRaycast(PlayerController3D controller)
 {
     if (Input.GetMouseButtonDown(0))
     {
         ToggleCombatMarker(true);
         controller.GetComponent <Fighter>().SetTarget(transform.GetComponent <Health>());
     }
     return(true);
 }