|
|
@ -13,6 +13,10 @@ public class menuContrller : MonoBehaviour { |
|
|
|
public GameObject txt_score; |
|
|
|
public GameObject txt_confetti; |
|
|
|
public levelController control; |
|
|
|
public GameObject alpaca; |
|
|
|
public GameObject platypuss; |
|
|
|
public GameObject goat; |
|
|
|
public GameObject kangaroo; |
|
|
|
|
|
|
|
// Use this for initialization
|
|
|
|
void Start () { |
|
|
@ -27,16 +31,23 @@ public class menuContrller : MonoBehaviour { |
|
|
|
menu.SetActive (false); |
|
|
|
options.SetActive (false); |
|
|
|
levelSelect.SetActive (false); |
|
|
|
alpaca.SetActive (true); |
|
|
|
goat.SetActive (true); |
|
|
|
platypuss.SetActive (true); |
|
|
|
kangaroo.SetActive (true); |
|
|
|
|
|
|
|
if (panel == "menu") |
|
|
|
menu.SetActive (true); |
|
|
|
if (panel =="options") |
|
|
|
options.SetActive (true); |
|
|
|
if (panel == "levelSelect") |
|
|
|
if (panel == "levelSelect") { |
|
|
|
levelSelect.SetActive (true); |
|
|
|
alpaca.SetActive (false); |
|
|
|
goat.SetActive (false); |
|
|
|
platypuss.SetActive (false); |
|
|
|
kangaroo.SetActive (false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public void playerSelect (int players){ |
|
|
|