private void Awake() { if (instance != null) { Destroy(this.gameObject); return; } if (instance == null) { instance = this; } DontDestroyOnLoad(gameObject); }
public static void LoadSounds() { Click = new GameSoundPlayer(Path.Combine(SoundsFolderPath, @"click.wav")); }