Beispiel #1
0
        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());
        }
Beispiel #2
0
 void Start()
 {
     sc            = new socketController();
     rc            = new rootController();
     errorTxt.text = wsData.error;
 }
Beispiel #3
0
 void Start()
 {
     rc = new rootController();
     sc = new socketController();
 }
Beispiel #4
0
 void Init()
 {
     sc = new socketController();
     rc = new rootController();
 }
Beispiel #5
0
 void Constructor()
 {
     rc = new rootController();
     sc = new socketController();
 }