Esempio n. 1
0
        protected void Start()
        {
            var characterComponent = gameObject.GetComponent <CharacterComponent>();

            _cameraPostProcessing = characterComponent.ActiveController.gameObject
                                    .GetComponent <ICameraPostProcessingInterface>();

            RegisterForMessages();
        }
Esempio n. 2
0
        protected void OnDestroy()
        {
            UnregisterForMessages();

            _cameraPostProcessing = null;
        }