예제 #1
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);
        }
예제 #2
0
        /// <summary>
        /// Setup the popup with the specified sdk and navigation controller.
        /// </summary>
        /// <param name="sdk">Sdk.</param>
        /// <param name="controller">Controller.</param>
        public void Setup(VisionSDK sdk, MainNavigationController controller)
        {
            this.sdk = sdk;

            sdk.Connections.OnPeripheralStateChange += OnConnectionChanged;
            sdk.Input.OnButtonDown += OnButtonDown;

            this.Controller = controller;

            SetState(StateEnum.Hidden);
        }
예제 #3
0
        /// <summary>
        /// Setup the fader's events.
        /// </summary>
        /// <param name="controller">Controller.</param>
        public virtual void Setup(MainNavigationController controller)
        {
            navController = controller;

            controller.OnMenuShown  += OnMenuShown;
            controller.OnMenuHidden += OnMenuHidden;

            controller.OnSaberSyncShown  += OnSaberSyncShown;
            controller.OnSaberSyncHidden += OnSaberSyncHidden;

            controller.OnHMDConnectShown  += OnHMDConnectShown;
            controller.OnHMDConnectHidden += OnHMDConnectHidden;
        }
예제 #4
0
 /// <summary>
 /// Setup the specified controller and animator.
 /// </summary>
 /// <param name="controller">Controller.</param>
 /// <param name="animator">Animator.</param>
 public void Setup(MainNavigationController controller, Animator animator)
 {
     menuAnimator = animator;
     Setup(controller);
 }
예제 #5
0
        public override void Setup(VisionSDK sdk, GazeWatcher gazeWatcher, Game game, MainNavigationController controller)
        {
            base.Setup(sdk, gazeWatcher, game, controller);

            Sdk.Input.OnButtonUp += OnButtonUp;

            Init();
        }