private void ShowDefaultDisplay() { /* *@Desc: Hud is the default window that will be displayed to the user once the player gameobject has fully loaded into the scene */ GameObject hudDisplay = _MainDisplay.transform.Find("Hud").gameObject; _ActiveDisplay = new UI_Hud(hudDisplay, _InputSwapper, _InputReceivers, this); _ActiveDisplay.ShowDisplay(); }
public void TransitionToOptionsMenu() { /* *@Desc: Will create and display the options menu, but first will disable the old UI display and reset the input receivers references */ ResetInputReceiverReferences(); GameObject optionsMenuDisplay = _MainDisplay.transform.Find("Options Menu").gameObject; _ActiveDisplay.HideDisplay(); _ActiveDisplay = new UI_OptionsMenu(optionsMenuDisplay, _InputReceivers, this); _ActiveDisplay.ShowDisplay(); }
public void TransitionToHud() { /* *@Desc: Will create display the player's Hud, but first will disable the old UI display and reset the input receivers references */ ResetInputReceiverReferences(); GameObject hudDisplay = _MainDisplay.transform.Find("Hud").gameObject; _ActiveDisplay.HideDisplay(); _ActiveDisplay = new UI_Hud(hudDisplay, _InputSwapper, _InputReceivers, this); _ActiveDisplay.ShowDisplay(); }