Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        //2018.3.16 ,只能在Start和Awake 里获取 SystemInfo.deviceUniqueIdentifiers
        GameInfo.OpenID = SystemInfo.deviceUniqueIdentifier;
        //

        music = gameObject.GetComponent <Manager_Login>();
        Sound = GameObject.Find("Audio Source").GetComponent <AudioSource>();
    }
Exemplo n.º 2
0
 void Awake()
 {
     progressBar  = transform.parent.Find("progressBar").GetComponent <Slider>();
     updateInfo   = transform.Find("updateInfo").GetComponent <Text>();
     downloadBtn  = transform.Find("downloadBtn").GetComponent <Button>();
     closeBtn     = transform.Find("closeBtn").GetComponent <Button>();
     localVersion = GameObject.Find("versionNum").GetComponent <Text>();
     login        = GameObject.Find("Main Camera").GetComponent <Manager_Login>();
     Status       = updateStatus.NO;
 }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     music = gameObject.GetComponent<Manager_Login>();
     Sound = GameObject.Find("Audio Source").GetComponent<AudioSource>();
 }