示例#1
0
 // Use this for initialization
 void Start()
 {
     OpenIABEventManageR = GameObject.Find("OpenIABEventManager").transform;
     GameObject soundOnOff = GameObject.Find("SoundSettingsDontDestroy");
     if (soundOnOff != null)
         Sound = soundOnOff.GetComponent<SoundSettingsDontDestroy>();
 }
示例#2
0
    void Start()
    {
        Sound = GameObject.Find("SoundSettingsDontDestroy").GetComponent<SoundSettingsDontDestroy>();

        if (Sound != null && transform.name != "PlayButton")
            if (Sound.SoundON)
            {
                transform.renderer.material = matButton[0];
            }
            else
            {
                transform.renderer.material = matButton[1];
            }
    }
    void Start()
    {
        Sound = GameObject.Find("SoundSettingsDontDestroy").GetComponent<SoundSettingsDontDestroy>();
        OpenIABEventManageR = GameObject.Find("OpenIABEventManager").transform;
        if ((OpenIABEventManageR.GetComponent<OpenIABEventManager>().bought || PlayerPrefs.HasKey("bought")) &&
            transform.FindChild("BlockedCauseNotBought") != null)
            transform.FindChild("BlockedCauseNotBought").GetComponent<MeshRenderer>().enabled = false;

        if (transform.parent.parent.GetComponent<getDoneLevels>().doneLevels[Convert.ToInt32(name.Substring(5)) - 1] == true)
            transform.FindChild("BestMarkStar").GetComponent<MeshRenderer>().enabled = true;
        lengz = transform.GetComponent<AudioSource>().clip.length;
        temp = transform.FindChild("BlockedCauseNotBought");
        if (temp != null) Mre = temp.GetComponent<MeshRenderer>();
        else Mre = null;
    }
 void Start()
 {
     curPageMenu = Camera.mainCamera.GetComponent<curPageMenuScript>();
     Sound = GameObject.Find("SoundSettingsDontDestroy").GetComponent<SoundSettingsDontDestroy>();
 }
 // Use this for initialization
 void Start()
 {
     GameObject soundOnOff = GameObject.Find("SoundSettingsDontDestroy");
     if (soundOnOff != null)
         soundOnz = soundOnOff.GetComponent<SoundSettingsDontDestroy>();
 }