private IEnumerator DisableActionTemporarilyCoroutine(UnityEngine.InputSystem.InputAction action, float seconds)
        {
            action.Disable();
            Debug.Log("disabled fire");
            yield return(new WaitForSeconds(seconds));

            action.Enable();
            Debug.Log("enabled fire");
        }
Exemple #2
0
 private void OnDisable()
 {
     toggleAction.Disable();
 }