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(); }