void Init() { Setting(); setAllObject(); UiInit(); initHideBody(); sc = new socketController(); if (!wsData.isOpen) { goScene("logoScene"); return; } googleLogin(); checkResource(); if (rootData.serverInfo ["telescopeTimer"] != null) { telescopRefreshSecond = float.Parse(rootData.serverInfo ["telescopeTimer"].ToString()); } telescopWaitSTime = Time.time; StartCoroutine(moveBody()); StartCoroutine(userInfoCoroutine()); StartCoroutine(userTierCoroutine()); StartCoroutine(telescopeTimerCoroutine()); StartCoroutine(onWsErrorCoroutine()); }
void Start() { sc = new socketController(); rc = new rootController(); errorTxt.text = wsData.error; }
void Start() { rc = new rootController(); sc = new socketController(); }
void Init() { sc = new socketController(); rc = new rootController(); }
void Constructor() { rc = new rootController(); sc = new socketController(); }