Ejemplo n.º 1
0
 private bool IsInRange(Component target)
 {
     return(target != null &&
            PositionUtil.BeelineDistance(gameObject.transform.position, target.transform.position) <= Range);
 }
Ejemplo n.º 2
0
 private bool WithinDistance(GameObject target, float distance)
 {
     return(PositionUtil.BeelineDistance(transform.position, target.transform.position) < distance);
 }