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.

30 lines
475 B

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