You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
615 B

  1. using UnityEngine;
  2. using System.Collections;
  3. public class levelController : MonoBehaviour {
  4. public int playerCount;
  5. public int maxScore;
  6. public int confetti;
  7. public bool p1Enabled;
  8. public bool p2Enabled;
  9. public bool p3Enabled;
  10. public bool p4Enabled;
  11. public static levelController control;
  12. // Use this for initialization
  13. void Awake ()
  14. {
  15. if (control == null) {
  16. DontDestroyOnLoad (gameObject);
  17. control = this;
  18. } else if (control != this) {
  19. Destroy (gameObject);
  20. }
  21. }
  22. // Use this for initialization
  23. void Start () {
  24. }
  25. // Update is called once per frame
  26. void Update () {
  27. }
  28. }