Пример #1
0
 private void OnDestroy()
 {
     up.Dispose();
     down.Dispose();
     left.Dispose();
     right.Dispose();
 }
Пример #2
0
 private void TriggerButtonAnimation()
 {
     _spaceAction.Dispose();
     _enterAction.Dispose();
     // LevelTransition.Instance.FadeIn();
     _animator.SetTrigger(Tap);
     AudioManager.Instance.PlaySound(clip);
 }
Пример #3
0
    // 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();
    }
Пример #4
0
 private void OnDestroy()
 {
     _myAction.Dispose();
 }
Пример #5
0
 private void OnDestroy()
 {
     _pressedKeyboard.Disable();
     _pressedKeyboard.Dispose();
 }
 private void OnDestroy()
 {
     MoveInput.Dispose();
     MoveInput = null;
 }