Пример #1
0
 void Update()
 {
     if (playerInside && Input.GetButtonDown(button))
     {
         handler.HandleAction(gameObject);
     }
 }