Skip to content

Commit

Permalink
Fix to hide home screen banner when leaving the title screen
Browse files Browse the repository at this point in the history
  • Loading branch information
jonuy committed Jul 3, 2014
1 parent 56fa23a commit c587a3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Binary file modified Assets/Scenes/Level1.unity
Binary file not shown.
5 changes: 5 additions & 0 deletions Assets/Scripts/HomeScreenUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public class HomeScreenUI : MonoBehaviour {
// Background
public GUITexture homeScreenBg;

// Title banner
public GUITexture homeScreenBanner;

// Left/right buttons to cycle through menu options
public GameObject leftTouchButton;
public GameObject rightTouchButton;
Expand Down Expand Up @@ -109,6 +112,7 @@ public void ShowUI() {
isVisible = true;

homeScreenBg.guiTexture.enabled = true;
homeScreenBanner.enabled = true;
leftTouchButton.SetActive(true);
rightTouchButton.SetActive(true);
menuSelect.SetActive(true);
Expand All @@ -127,6 +131,7 @@ private void HideUI(bool hideBg = true) {
homeScreenBg.guiTexture.enabled = false;
}

homeScreenBanner.enabled = false;
leftTouchButton.SetActive(false);
rightTouchButton.SetActive(false);
menuSelect.SetActive(false);
Expand Down

0 comments on commit c587a3b

Please sign in to comment.