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); }
/// <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); }
/// <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; }
/// <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); }
public override void Setup(VisionSDK sdk, GazeWatcher gazeWatcher, Game game, MainNavigationController controller) { base.Setup(sdk, gazeWatcher, game, controller); Sdk.Input.OnButtonUp += OnButtonUp; Init(); }