예제 #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);
    }
예제 #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
    }
예제 #3
0
 void UOSApplication.TearDown()
 {
     this.gateway = null;
 }
예제 #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();
 }