void UOSApplication.Init(IGateway gateway, uOSSettings settings) { this.gateway = (UnityGateway)gateway; this.gateway.Register( WorldMapController.main, gateway.currentDevice, GlobalPositionDriver.DRIVER_ID, null, GlobalPositionDriver.EVENT_POS_CHANGE); WorldMapController.main.Init(gateway, settings); }
/// <summary> /// Initialises this driver. /// </summary> /// <param name="gateway"></param> /// <param name="settings"></param> /// <param name="instanceId"></param> public void Init(IGateway gateway, uOSSettings settings, string instanceId) { this.gateway = (UnityGateway)gateway; this.instanceId = instanceId; this.enabled = true; #if (UNITY_EDITOR || UNITY_STANDALONE) status = Status.READY; #else status = Status.UNITIALISED; StartCoroutine("StartLocationService"); #endif }
/// <summary> /// Initialises this driver. /// </summary> /// <param name="gateway"></param> /// <param name="settings"></param> /// <param name="instanceId"></param> public void Init(IGateway gateway, uOSSettings settings, string instanceId) { this.enabled = true; }
/// <summary> /// Called by GameController when the middleware is initiated. /// </summary> /// <param name="gateway"></param> /// <param name="settings"></param> public void Init(IGateway gateway, uOSSettings settings) { this.gateway = (UnityGateway)gateway; this.clientName = SystemInfo.deviceUniqueIdentifier; (new Thread(PositionUpdateThread)).Start(); }