Inheritance: UnityEngine.MonoBehaviour
Ejemplo n.º 1
0
        private void Awake()
        {
            if (instance == null)
            {
                instance = this;
                DontDestroyOnLoad(gameObject);
            }

            if (Application.loadedLevelName == "Examples" && Application.levelCount > 1)
            {
                LoadNextLevel();
            }
        }
Ejemplo n.º 2
0
        private void Awake()
        {
            if (instance == null)
            {
                instance = this;
                DontDestroyOnLoad(gameObject);
            }

            layer = GetComponent<UILayer>();

            if (SceneManager.GetActiveScene().name == "Examples" && SceneManager.sceneCount > 1)
            {
                LoadNextLevel();
            }
        }
Ejemplo n.º 3
0
        private void Awake()
        {
            if (instance == null)
            {
                instance = this;
                DontDestroyOnLoad(gameObject);
            }

            layer = GetComponent<UILayer>();

#if UNITY_5_3
            if (SceneManager.GetActiveScene().name == "Examples" && SceneManager.sceneCountInBuildSettings > 1)
#else
			if (Application.loadedLevelName == "Examples" && Application.levelCount > 1)
#endif
            {
                LoadNextLevel();
            }
        }