void Awake() { if (instance != null) { Debug.LogError("More than one LevelLoadManager in the Scene!"); } else { instance = this; } }
private void Start() => m_LevelLoadManager = LevelLoadManager.Instance;
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 } } } }"); }