private void OnDestroy() { up.Dispose(); down.Dispose(); left.Dispose(); right.Dispose(); }
private void TriggerButtonAnimation() { _spaceAction.Dispose(); _enterAction.Dispose(); // LevelTransition.Instance.FadeIn(); _animator.SetTrigger(Tap); AudioManager.Instance.PlaySound(clip); }
// Start is called before the first frame update void Start() { winner.text = FindObjectOfType <VictoryFuck>().WINNER.ToString(); var myAction = new InputAction(binding: "/*/<button>"); myAction.performed += (action) => { myAction.Disable(); myAction.Dispose(); Reload(); }; myAction.Enable(); }
private void OnDestroy() { _myAction.Dispose(); }
private void OnDestroy() { _pressedKeyboard.Disable(); _pressedKeyboard.Dispose(); }
private void OnDestroy() { MoveInput.Dispose(); MoveInput = null; }