Exemple #1
0
        /// <summary>
        /// Called when the player clicks on the Credits option.
        /// </summary>
        public void OnCreditsPressed()
        {
            /*
             * // ┌ mine ─────────────────────────────────────────────────────────┐
             * MenuManager menuManager = GameObject.FindObjectOfType<MenuManager> ();
             * if (menuManager != null)
             * {
             *      // get the instance of the settings menu
             *      Transform settingsMenu = menuManager.MenusParent.Find ("CreditsMenu(Clone)");
             *
             *      // open the settings menu
             *      menuManager.OpenMenu (settingsMenu.GetComponent<Menu> ());
             * }
             * // └───────────────────────────────────────────────────────────────┘
             */

            // ┌ wilmer lin ───────────────────────────────────────────────────┐
            CreditsMenu.Open();
            // └───────────────────────────────────────────────────────────────┘
        }
Exemple #2
0
 public void OnCreditsPressed()
 {
     CreditsMenu.Open();
 }