Example #1
0
 private void OnTriggerExit2D(Collider2D other)
 {
     if (other.TryGetComponent <Boy>(out var player))
     {
         _keyView.enabled = false;
         InputReciver.UnsubscribeOnInput <On_Button_Down>(StartDialog, KeyCode.E);
     }
 }
Example #2
0
 private void Unpause(On_Button_Down context)
 {
     if (_isPause == false)
     {
         return;
     }
     InputReciver.UnsubscribeOnInput <On_Button_Down>(Unpause, KeyCode.Escape);
     InputReciver.SubscribeOnInput <On_Button_Down>(SetPause, KeyCode.Escape);
     ChangePause();
 }
Example #3
0
 private void ExitDialog(On_Button_Down context)
 {
     IsTalk = false;
     InputReciver.UnsubscribeOnInput <On_Button_Down>(ExitDialog, KeyCode.E);
     InputReciver.SubscribeOnInput <On_Button_Down>(EnterDialog, KeyCode.E);
 }