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