using UnityEngine; using System.Collections; public class levelController : MonoBehaviour { public int playerCount; public int maxScore; public int confetti; public bool p1Enabled; public bool p2Enabled; public bool p3Enabled; public bool p4Enabled; public static levelController control; // Use this for initialization void Awake () { if (control == null) { DontDestroyOnLoad (gameObject); control = this; } else if (control != this) { Destroy (gameObject); } } // Use this for initialization void Start () { } // Update is called once per frame void Update () { } }