Esempio n. 1
0
    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);
    }
Esempio n. 2
0
    /// <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
    }
Esempio n. 3
0
 /// <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;
 }
Esempio n. 4
0
 /// <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();
 }