public virtual void Awake() { //Get the mode tracking object. var modeTrackingController = FindObjectOfType <ModeTrackingController>() .GetComponent <ModeTrackingController>(); this.modeStatusUpdate = modeTrackingController as IModeTrackingUpdateStatus; this.modeStatusUpdateRegister = modeTrackingController as IModeTrackingUpdateStatusRegister; //Register to update the mode status. this.modeStatusUpdateRegister.RegisterToUpdate(this); this.ConfigureView(); }
public virtual void Awake() { //Get the mode tracking object. var modeTrackingController = FindObjectOfType<ModeTrackingController>() .GetComponent<ModeTrackingController>(); this.modeStatusUpdate = modeTrackingController as IModeTrackingUpdateStatus; this.modeStatusUpdateRegister = modeTrackingController as IModeTrackingUpdateStatusRegister; //Register to update the mode status. this.modeStatusUpdateRegister.RegisterToUpdate(this); this.ConfigureView(); }