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