コード例 #1
0
 protected virtual void Awake()
 {
     this._blockingEventsManager = CDependencyResolver.Get <CBlockingEventsManager>();
     if (this._playableDirector.extrapolationMode != DirectorWrapMode.None)
     {
         Debug.LogError($"PlayableDirector {this._playableDirector.name} extrapolationMode must be set to None.");
     }
 }
コード例 #2
0
        public CCursorManager()
        {
            this._gameSettings          = CDependencyResolver.Get <CGameSettings>();
            this._blockingEventsManager = CDependencyResolver.Get <CBlockingEventsManager>();

            SetCursorState(!this._gameSettings.CursorStartsHidden);
            this._blockingEventsManager.OnMenu += SetCursorState;
            CInputManager.InputTypeChanged     += OnInputTypeChanged;
        }
コード例 #3
0
ファイル: CPlayerCamera.cs プロジェクト: Chrisdbhr/CDK
        private void Awake()
        {
            this._transform               = this.transform;
            this._fader                   = CDependencyResolver.Get <CFader>();
            this._blockingEventsManager   = CDependencyResolver.Get <CBlockingEventsManager>();
            this.ActiveCameraProfiles     = new List <CCameraProfileVolume>();
            this._isCloseToTheCharacterRx = new ReactiveProperty <bool>(false);

            this.SearchForGlobalVolume();
            this.ApplyLastOrDefaultCameraProfile();
        }
コード例 #4
0
        private void Awake()
        {
            this._blockingEventsManager = CDependencyResolver.Get <CBlockingEventsManager>();
            this._transform             = this.transform;

            this._characterBase = this.GetComponent <CCharacterBase>();
            if (this._characterBase == null)
            {
                Debug.LogError($"Cant find any Character on {this.name}, removing component, character cannot interact with anything!");
                Destroy(this);
            }
        }
コード例 #5
0
ファイル: CMouseRotator.cs プロジェクト: Chrisdbhr/CDK
 protected void Awake()
 {
     this._transform             = this.transform;
     this._initialRotation       = this._transform.rotation;
     this._blockingEventsManager = CDependencyResolver.Get <CBlockingEventsManager>();
 }
コード例 #6
0
 protected virtual void Awake()
 {
     this._blockingEventsManager = CDependencyResolver.Get <CBlockingEventsManager>();
 }
コード例 #7
0
 private void Awake()
 {
     _blockingEventsManager = CDependencyResolver.Get <CBlockingEventsManager>();
 }