protected void Start() { var characterComponent = gameObject.GetComponent <CharacterComponent>(); _cameraPostProcessing = characterComponent.ActiveController.gameObject .GetComponent <ICameraPostProcessingInterface>(); RegisterForMessages(); }
protected void OnDestroy() { UnregisterForMessages(); _cameraPostProcessing = null; }