public WeaponDepot GetNearestActiveDepot(Vector3 _position) { if (_weaponDepot != null && _weaponDepot.Active()) { if (Vector3.DistanceSquared(_position, _weaponDepot._position) < 0.9f) { return(_weaponDepot); } } return(null); }
public WeaponDepot GetNearestActiveDepot(Vector3 _position) { if (_weaponDepot != null && _weaponDepot.Active()) { if (Vector3.DistanceSquared(_position, _weaponDepot._position) < 0.9f) { return(_weaponDepot); } } return(null); }