// Use this for initialization void Start() { Help = FindObjectOfType(typeof(OnHelp)) as OnHelp; Setting = FindObjectOfType(typeof(OnSettings)) as OnSettings; FB = FindObjectOfType(typeof(OnFb)) as OnFb; cup = FindObjectOfType(typeof(OnCup)) as OnCup; }
// Use this for initialization void Start() { Help = FindObjectOfType(typeof(OnHelp)) as OnHelp; FB = FindObjectOfType(typeof(OnFb)) as OnFb; cup = FindObjectOfType(typeof(OnCup)) as OnCup; AudioSource audioSource = UnityEngine.Object.FindObjectOfType <AudioSource>(); sound_dropdown.value = PlayerPrefs.GetInt("MancalaSound", 1); if (PlayerPrefs.GetInt("MancalaSound", 1) == 1) { audioSource.UnPause(); } else { audioSource.Pause(); } }