Beispiel #1
0
 private void OnEnable()
 {
     if (_continuous)
     {
         ProximityCheckerManager.AddChecker(this);
     }
 }
Beispiel #2
0
 private void OnDisable()
 {
     if (_continuous)
     {
         ProximityCheckerManager.RemoveChecker(this);
     }
 }
 private void Awake()
 {
     _instance = this;
 }