Example #1
0
File: Menu.cs Project: Flubz/Ferral
 public void OpenMenu()
 {
     if (_menuIsOpen)
     {
         return;
     }
     _canvasFader.FadeCanvasIn();
     _canvasFader.OnFadeInComplete += OnMenuOpened;
     _menuIsOpen = true;
 }
Example #2
0
File: Menu.cs Project: Flubz/LD42
 public void OpenMenu()
 {
     if (_menuIsOpen)
     {
         return;
     }
     _prevInputMode = InputManager._instance._InputMode;
     InputManager._instance.SetInputMode(_menuInputMode);
     _canvasFader.FadeCanvasIn();
     _canvasFader.OnFadeInComplete += OnMenuOpened;
     _menuIsOpen = true;
 }
Example #3
0
 public void GameOver()
 {
     _canvasFader.FadeCanvasIn();
     _addButton.interactable = true;
     _scoreField.text        = ScoreManager._instance._CurrentScore.ToString();
 }