private void OnTriggerExit2D(Collider2D other) { if (other.TryGetComponent <Boy>(out var player)) { _keyView.enabled = false; InputReciver.UnsubscribeOnInput <On_Button_Down>(StartDialog, KeyCode.E); } }
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(); }
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); }