public void DisactiveDynamicView(IModeTracking modeTracker, IViewController viewController) { if (this.registeredDynamicViewsUIControllers != null && this.modeDynamicViewMappings != null) { if (this.registeredDynamicViewsUIControllers.Contains(viewController)) { if (this.modeDynamicViewMappings.ContainsKey(modeTracker.ActiveMode)) { modeDynamicViewMappings[modeTracker.ActiveMode].Disable(); } } } }
public void DisactiveDynamicView(IModeTracking modeTracker, IViewController viewController) { if (this.registeredDynamicViewsUIControllers != null && this.modeDynamicViewMappings != null) { if (this.registeredDynamicViewsUIControllers.Contains(viewController)) { if (this.modeDynamicViewMappings.ContainsKey(modeTracker.ActiveMode)) { modeDynamicViewMappings[modeTracker.ActiveMode].Disable(); } } } }
public override void Awake() { base.Awake(); //Setup menu to mode mappings this.ConfigureModesToMenuOptions(); this.currentMode = FindObjectOfType <ModeTrackingController>() .GetComponent <ModeTrackingController>() as IModeTracking; this.viewControllerRegister = FindObjectOfType <ViewCtrl>() .GetComponent <ViewCtrl>() as IViewControllerRegister; this.viewControllerRequests = FindObjectOfType <ViewCtrl>() .GetComponent <ViewCtrl>() as IViewControllerRequests; this.viewControllerRegister.RegisterToRequestModeChange(this); //Configure button click listeners. this.ConfigureButtons(); }
public override void Awake() { base.Awake(); //Setup menu to mode mappings this.ConfigureModesToMenuOptions(); this.currentMode = FindObjectOfType<ModeTrackingController>() .GetComponent<ModeTrackingController>() as IModeTracking; this.viewControllerRegister = FindObjectOfType<ViewCtrl>() .GetComponent<ViewCtrl>() as IViewControllerRegister; this.viewControllerRequests = FindObjectOfType<ViewCtrl>() .GetComponent<ViewCtrl>() as IViewControllerRequests; this.viewControllerRegister.RegisterToRequestModeChange(this); //Configure button click listeners. this.ConfigureButtons(); }