Example #1
0
 public bool IsTargetHittable()
 {
     if (debug)
     {
         Debug.Log("CanIShoot: " + weaponController.IsTargetInRange().ToString() + " " + weaponController.IsNothingBetween().ToString() + " " + weaponController.IsValidDirection().ToString());
     }
     if (weaponController.IsTargetInRange())
     {
         if (weaponController.IsValidDirection())
         {
             if (weaponController.IsNothingBetween())
             {
                 return(true);
             }
         }
     }
     return(false);
 }