// Use this for initialization
 void Start()
 {
     socket = SocketController.instant;
     socket.Init();
     tracker        = new Tracker();
     sceneEnterTime = Time.time;
     StartCoroutine(tracker.Event("GameStart"));
     ChangeScene("1");
 }
예제 #2
0
 void Start()
 {
     socket = SocketController.instant;
     updater.OnReadyHandler = () =>
     {
         SaveConfigFile();
         socket.socket.url = "ws://" + socketIP + ":" + socketPort + "/socket.io/?EIO=4&transport=websocket";
         socket.Init();
         if (OnReadyHandler != null)
         {
             OnReadyHandler();
         }
     };
     updater.OnApkUpdate = v =>
     {
         if (OnApkUpdate != null)
         {
             OnApkUpdate();
         }
     };
     StartCoroutine(AppStart());
 }
예제 #3
0
 void Awake()
 {
     instant = this;
 }