Beispiel #1
0
        public override void Setup(VisionSDK sdk, GazeWatcher gazeWatcher, Game game, MainNavigationController controller)
        {
            base.Setup(sdk, gazeWatcher, game, controller);

            Sdk.Input.OnButtonUp += OnButtonUp;

            Init();
        }
Beispiel #2
0
        public virtual void Setup(VisionSDK sdk, GazeWatcher gazeWatcher, Game game, MainNavigationController controller)
        {
            Sdk         = sdk;
            GazeWatcher = gazeWatcher;
            Game        = game;
            Controller  = controller;

            GazeListener = new GazeListener(new [] { typeof(NavigationElement) }, OnGazedAt, OnGazedOff);
            GazeWatcher.AddListener(GazeListener);
        }
        private void OnDestroy()
        {
            GazeWatcher.RemoveListener(gazeListener);

            if (HolocronObjectToDestroy != null)
            {
                // removing the holocron from 3dFtue
                Destroy(HolocronObjectToDestroy);

                // disabling the animation flag
                ShouldHolocronAnimate = true;
            }
        }
        private void Start()
        {
            gazeListener = new GazeListener(new [] { typeof(MenuNode), typeof(ReferenceNode), typeof(CurvedUIButton) },
                                            OnItemGazedAt,
                                            OnItemGazedOff);
            GazeWatcher.AddListener(gazeListener);
            GazeWatcher.RaycastEnabled = true;

////			lastNode = selectedNode = Galaxy.GetComponent<MenuNode>();
            lastNode = selectedNode = null;

//			SceneManager.sceneLoaded += OnSceneLoadedDoPillarSetup;
//			SceneManager.LoadScene("Pillars", LoadSceneMode.Additive);

//			if (DeepLinkOnLoad)
//			{
//				deepLinkDifficulty = DifficultyToLoad;
//			}
        }