Example #1
0
 void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("More than one LevelLoadManager in the Scene!");
     }
     else
     {
         instance = this;
     }
 }
Example #2
0
 private void Start() => m_LevelLoadManager = LevelLoadManager.Instance;
Example #3
0
 private void Awake()
 {
     DontDestroyOnLoad(this);
     m_Instance = this;
     m_Material = new Material("Shader \"Plane/No zTest\" { SubShader { Pass { Blend SrcAlpha OneMinusSrcAlpha ZWrite Off Cull Off Fog { Mode Off } BindChannels { Bind \"Color\",color } } } }");
 }