|
@ -7,6 +7,8 @@ public class menuContrller : MonoBehaviour { |
|
|
public GameObject menu; |
|
|
public GameObject menu; |
|
|
public GameObject options; |
|
|
public GameObject options; |
|
|
public GameObject levelSelect; |
|
|
public GameObject levelSelect; |
|
|
|
|
|
public GameObject instructions; |
|
|
|
|
|
public GameObject xboxLayout; |
|
|
public GameObject btn_2player; |
|
|
public GameObject btn_2player; |
|
|
public GameObject btn_3player; |
|
|
public GameObject btn_3player; |
|
|
public GameObject btn_4player; |
|
|
public GameObject btn_4player; |
|
@ -31,6 +33,8 @@ public class menuContrller : MonoBehaviour { |
|
|
menu.SetActive (false); |
|
|
menu.SetActive (false); |
|
|
options.SetActive (false); |
|
|
options.SetActive (false); |
|
|
levelSelect.SetActive (false); |
|
|
levelSelect.SetActive (false); |
|
|
|
|
|
instructions.SetActive (false); |
|
|
|
|
|
xboxLayout.SetActive (false); |
|
|
alpaca.SetActive (true); |
|
|
alpaca.SetActive (true); |
|
|
goat.SetActive (true); |
|
|
goat.SetActive (true); |
|
|
platypuss.SetActive (true); |
|
|
platypuss.SetActive (true); |
|
@ -46,7 +50,20 @@ public class menuContrller : MonoBehaviour { |
|
|
goat.SetActive (false); |
|
|
goat.SetActive (false); |
|
|
platypuss.SetActive (false); |
|
|
platypuss.SetActive (false); |
|
|
kangaroo.SetActive (false); |
|
|
kangaroo.SetActive (false); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
if (panel == "instructions") { |
|
|
|
|
|
instructions.SetActive (true); |
|
|
|
|
|
alpaca.SetActive (false); |
|
|
|
|
|
goat.SetActive (false); |
|
|
|
|
|
platypuss.SetActive (false); |
|
|
|
|
|
kangaroo.SetActive (false); |
|
|
|
|
|
} |
|
|
|
|
|
if (panel == "xboxLayout") { |
|
|
|
|
|
xboxLayout.SetActive (true); |
|
|
|
|
|
alpaca.SetActive (false); |
|
|
|
|
|
goat.SetActive (false); |
|
|
|
|
|
platypuss.SetActive (false); |
|
|
|
|
|
kangaroo.SetActive (false); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|