Added new pages in the menu that will be used for highscorews and game info/controls (both are currently empty)
This commit is contained in:
+1630
-8
File diff suppressed because it is too large
Load Diff
@@ -9,8 +9,12 @@ public class MainMenu : MonoBehaviour
|
|||||||
|
|
||||||
public GameObject menuFirstButton;
|
public GameObject menuFirstButton;
|
||||||
public GameObject skinsFirstButton;
|
public GameObject skinsFirstButton;
|
||||||
|
public GameObject highscoreFirstButton;
|
||||||
|
public GameObject gameinfoFirstButton;
|
||||||
public GameObject optionsFirstButton;
|
public GameObject optionsFirstButton;
|
||||||
public GameObject skinsBackButton;
|
public GameObject skinsBackButton;
|
||||||
|
public GameObject highscoreBackButton;
|
||||||
|
public GameObject gameinfoBackButton;
|
||||||
public GameObject optionsBackButton;
|
public GameObject optionsBackButton;
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
@@ -36,6 +40,30 @@ public class MainMenu : MonoBehaviour
|
|||||||
EventSystem.current.SetSelectedGameObject(skinsBackButton);
|
EventSystem.current.SetSelectedGameObject(skinsBackButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Highscores()
|
||||||
|
{
|
||||||
|
EventSystem.current.SetSelectedGameObject(null);
|
||||||
|
EventSystem.current.SetSelectedGameObject(highscoreFirstButton);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void BackHighscores()
|
||||||
|
{
|
||||||
|
EventSystem.current.SetSelectedGameObject(null);
|
||||||
|
EventSystem.current.SetSelectedGameObject(highscoreBackButton);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void GameInfo()
|
||||||
|
{
|
||||||
|
EventSystem.current.SetSelectedGameObject(null);
|
||||||
|
EventSystem.current.SetSelectedGameObject(gameinfoFirstButton);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void BackGameInfo()
|
||||||
|
{
|
||||||
|
EventSystem.current.SetSelectedGameObject(null);
|
||||||
|
EventSystem.current.SetSelectedGameObject(gameinfoBackButton);
|
||||||
|
}
|
||||||
|
|
||||||
public void Options()
|
public void Options()
|
||||||
{
|
{
|
||||||
EventSystem.current.SetSelectedGameObject(null);
|
EventSystem.current.SetSelectedGameObject(null);
|
||||||
|
|||||||
+59
-33
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user