コード例 #1
0
ファイル: BaseView.cs プロジェクト: Scubaboy/QuadUnity3DApp
        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();
        }
コード例 #2
0
ファイル: BaseView.cs プロジェクト: Scubaboy/QuadUnity3DApp
        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();
        }