public void LoadScene() { if (this.gameObject.GetComponent <Button>()) { SoundManager.sm_Instance.PlayTap(); } //SceneManager.LoadScene(sceneName); MyFade.Get().Fadeout(sceneName); }
private void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }
public static void LoadScene(string scene) { MyFade.Get().Fadeout(scene); }