using UnityEngine;
|
|
using System.Collections;
|
|
|
|
public class levelController : MonoBehaviour {
|
|
|
|
public int playerCount;
|
|
public int maxScore;
|
|
public int confetti;
|
|
|
|
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 () {
|
|
|
|
}
|
|
}
|