void Awake()
        {
            m_RestartButton.onClick.AddListener(() =>
            {
                OnRestart?.Invoke();
            });

            m_MainMenu.onClick.AddListener(() =>
            {
                OnMainMenu?.Invoke();
            });
        }
示例#2
0
 public void PressMainMenu()
 {
     Hide();
     OnMainMenu?.Invoke();
 }
示例#3
0
 public void MainMenuButton()
 {
     OnMainMenu?.Invoke();
 }