// Start is called before the first frame update public void TaskOnClick() { Debug.Log(scene); AutoFadeScript.LoadLevel(scene, 1, 1, Color.black); }
private void Awake() { //DontDestroyOnLoad(this); m_Instance = this; m_Material = new Material(shader); }