// Use this for initialization
 void Start()
 {
     socket = SocketController.instant;
     socket.Init();
     tracker        = new Tracker();
     sceneEnterTime = Time.time;
     StartCoroutine(tracker.Event("GameStart"));
     ChangeScene("1");
 }
Exemplo n.º 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());
 }
Exemplo n.º 3
0
 void Awake()
 {
     instant = this;
 }