예제 #1
0
 // 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;
 }
예제 #2
0
    // 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();
        }
    }