protected override void Start()
 {
     base.Start();
     // Register task
     CSceneManager.Instance.OnRegisterTask(this);
     // Test: Check server sersion.
     m_ServerRequest = new CWWW();
     m_ServerRequest.Get("https://www.google.com.vn", (result) => {
         m_ServerRequest.HandleCoroutine(HandleResourceLoader(m_ServerCheckUrl, m_Version, (x) => {
             this.OnLoadResourceComplete(m_VersionStr, x);
         }, (e) => {
             this.OnLoadResourceFail(m_VersionStr, e);
         }));
     }, (error) => {
         this.OnLoadResourceFail(m_VersionStr, error);
     });
 }
Esempio n. 2
0
 protected override void Awake()
 {
     base.Awake();
     DontDestroyOnLoad(this.gameObject);
     m_WWW = new CWWW();
 }