예제 #1
0
 void OnTriggerStay(Collider c)
 {
     if (c.gameObject.tag != "Player")
     {
         return;
     }
     if (_isActivated)
     {
         return;
     }
     _current += Time.deltaTime;
     if (_current < _menuManager.TimeToActivate)
     {
         return;
     }
     _menuManager.ActivateElement(id);
     _isActivated = true;
 }