Exemplo n.º 1
0
        private void OnDestroy()
        {
            // Remove Input Events
            Sdk.Input.OnButtonUp -= OnButtonUp;

            // Kill SDK
            Sdk = null;

            // Kill the Container
            container.NativeBridge.OnLowMemory -= OnLowMemory;
            container.Dispose();
            container = null;
        }
        private void StartObbCheck()
        {
            Log.Debug("StartObbCheck");
            checkForPermissionsRequestable = false;

            if (container != null)
            {
                container.Dispose();
            }

            PromptUI.SetActive(false);
            this.gameObject.GetComponent <ObbPermissionsController>().Init();
        }
Exemplo n.º 3
0
        private void OnDestroy()
        {
            // Remove Input Events
            Sdk.Tracking.OnBeaconStateChange        -= OnBeaconStateChanged;
            Sdk.Connections.OnPeripheralStateChange -= OnPeripheralStateChange;
            Sdk.Input.OnButtonDown  -= OnButtonDown;
            Sdk.Input.OnButtonUp    -= OnButtonUp;
            Sdk.Input.OnButtonPress -= OnButtonPress;

            // Kill SDK
            Sdk = null;

            // Kill the Container
            container.NativeBridge.OnLowMemory -= OnLowMemory;
            container.Dispose();
            container = null;
        }
Exemplo n.º 4
0
        private static FtueData GetFtueData()
        {
            // creating container
            ContainerAPI container = new ContainerAPI(Game.ForceVision);

            FtueData ftueData = null;

            if (container.PersistentData.FileExists(FtueDataFile))
            {
                string data = container.PersistentData.LoadText(FtueDataFile);
                ftueData = JsonUtility.FromJson <FtueData>(data);
            }

            // cleaning up container
            container.Dispose();

            return(ftueData);
        }
Exemplo n.º 5
0
        private void OnDestroy()
        {
            // Remove Input Events
            Sdk.Input.OnButtonUp -= OnButtonUp;

            MainNav.OnMenuShown     -= OnMenuShown;
            MainNav.OnMenuHidden    -= OnMenuHidden;
            MainNav.OnQuitButton    -= OnMenuQuit;
            MainNav.OnRestartButton -= OnMenuRestart;

            // Kill SDK
            Sdk = null;

            // Kill the Container
            container.NativeBridge.OnLowMemory -= OnLowMemory;
            container.Dispose();
            container = null;

            GazeWatcher.RemoveListener(gazeListener);
        }