Beispiel #1
0
 protected void Start()
 {
     // setup the SDK
     Sdk.SetLogger(new Disney.ForceVision.Internal.VisionSdkLoggerProxy());
     Sdk.StereoCamera.UseMagnetometerCorrection = false;
     Sdk.Heartbeat.OnFrameUpdate += OnSdkFrameUpdate;
     OnSdkReady();
 }
Beispiel #2
0
        protected void Start()
        {
            if (!FtueDataController.IsFtueComplete(FtueType.Intro))
            {
                AkBankManager.LoadBank("Container_DX_SB", false, false);
            }

            // setup the SDK
            Sdk.SetLogger(new Disney.ForceVision.Internal.VisionSdkLoggerProxy());

            Sdk.Heartbeat.OnFrameUpdate += OnSdkFrameUpdate;
            Sdk.StereoCamera.UseMagnetometerCorrection = false;

            Invoke("OnSdkReady", 0.1f);
        }
Beispiel #3
0
        private void Start()
        {
            // Our Container API
            container = new ContainerAPI(Game.ForceVision);
            container.NativeBridge.OnLowMemory += OnLowMemory;

            // Setup the SDK
            Sdk.SetLogger(new VisionSdkLoggerProxy());
            OnSDKReady();

            Sdk.StereoCamera.UseMagnetometerCorrection = false;

            if (Triggers.Count > 0)
            {
                PlayAnimation(Triggers[0]);
                Triggers.RemoveAt(0);
            }
        }
Beispiel #4
0
        private void Start()
        {
            // Our Container API
            container = new ContainerAPI(Game.ForceVision);
            container.NativeBridge.OnLowMemory += OnLowMemory;

            // Setup the SDK
            Sdk.SetLogger(new VisionSdkLoggerProxy());
            OnSDKReady();

            Sdk.StereoCamera.UseMagnetometerCorrection = false;

            UIHolder.parent = Sdk.StereoCamera.transform;
            UIHolder.SnapToZero();

            ControlsPrompt.SetActive(false);
            PreparePanel.SetActive(true);

            currentState = PrepareHeadsetState.TrayInHeadset;
        }
Beispiel #5
0
        private void Start()
        {
            // Our Container API
            container = new ContainerAPI(Game.ForceVision);
            container.NativeBridge.OnLowMemory += OnLowMemory;

            // Hook up the debug canvas
            Log.SetUILogTarget(LogField);

            // Setup the SDK
            Sdk.SetLogger(new VisionSdkLoggerProxy());
            OnSDKReady();

            Sdk.StereoCamera.UseMagnetometerCorrection = false;

            if (GalaxyRotation != null)
            {
                GalaxyRotation.CameraTransform = Sdk.StereoCamera.transform;
            }

            Analytics.LogAction(new ActionAnalytics("start.complete.app"));
        }
Beispiel #6
0
        private void Start()
        {
            // Our Container API
            container = new ContainerAPI(Game.ForceVision);
            container.NativeBridge.OnLowMemory += OnLowMemory;

            if (MenuController.ConfigToLoad != null)
            {
                DuelistTitle.text = Localizer.Get("PedestalView.Title.LevelName." + MenuController.ConfigToLoad.GetTokenString()).Replace(Environment.NewLine,
                                                                                                                                          " ");

                // Medium on Core is called Easy. Otherwise, assign difficulty like normal
                if (MenuController.ConfigToLoad.Planet == PlanetType.Core && MenuController.DifficultyToLoad == Difficulty.Medium)
                {
                    DifficultyText.text = Localizer.Get("General.Name." + PlanetType.Core.ToString()) + ", " + Localizer.Get("LightsaberDuel.Difficulty.Easy");
                }
                else if (MenuController.ConfigToLoad.IsBonusPlanet)
                {
                    DifficultyText.text = Localizer.Get("General.Name." + MenuController.ConfigToLoad.BonusPlanet.ToString()) + ", " + Localizer.Get("LightsaberDuel.Difficulty." + MenuController.DifficultyToLoad.ToString());
                }
                else
                {
                    DifficultyText.text = Localizer.Get("General.Name." + MenuController.ConfigToLoad.Planet.ToString()) + ", " + Localizer.Get("LightsaberDuel.Difficulty." + MenuController.DifficultyToLoad.ToString());
                }

                PromptText.text = MenuController.ConfigToLoad.Game == Game.Assault ? Localizer.Get("LightsaberDuel.Prompt.SelectForcePower") : Localizer.Get("LightsaberDuel.Prompt.SelectForcePowers");
            }

            // Setup the SDK
            Sdk.SetLogger(new VisionSdkLoggerProxy());
            OnSDKReady();

            Sdk.StereoCamera.UseMagnetometerCorrection = false;

            gazeListener = new GazeListener(new [] { typeof(BaseEquipItem) }, OnItemGazedAt, OnItemGazedOff);
            GazeWatcher.AddListener(gazeListener);
        }