using UnityEngine; public class LevelSwitcher : MonoBehaviour { #region Statication public static LevelSwitcher instance; private void Awake() { if (instance != null && instance != this) { Destroy(gameObject); return; } instance = this; } #endregion public int[] stages; //uhh.... public int currentStage; public void ChangeLevel() { } }