private void EnableInput() { if (cutsceneInput == null) { cutsceneInput = new CutsceneInput(); } cutsceneInput.EnableInputActions(); cutsceneInput.OnAnyAction += OnAnyAction; cutsceneInput.OnSkipAction += OnSkipAction; }
private void OnEnable() { if (cutsceneInput == null) { Debug.Log("[SerializeInputTest] OnEnable create CutsceneInput"); cutsceneInput = new CutsceneInput(); } else { Debug.Log("[SerializeInputTest] OnEnable CutsceneInput is not null"); } cutsceneInput.EnableInputActions(); cutsceneInput.OnAnyAction += CutsceneInput_OnAnyAction; cutsceneInput.OnSkipAction += CutsceneInput_OnConfirmAction; }