void Awake() { timelineController = Finder.TimelineController; timelineChangedEventChannel = Finder.TimelineChangedEventChannel; virtualCamera = GetComponent <CinemachineVirtualCamera>(); noiseSettings = virtualCamera.GetCinemachineComponent <CinemachineBasicMultiChannelPerlin>(); }
private void Awake() { volume = gameObject.GetComponent <CinemachinePostProcessing>(); volume.m_Profile = volume.Profile.Clone(); volume.Profile.TryGetSettings(out depthOfField); volume.Profile.TryGetSettings(out chromaticAberration); playerDeathEventChannel = Finder.PlayerDeathEventChannel; levelCompletedEventChannel = Finder.LevelCompletedEventChannel; timelineChangedEventChannel = Finder.TimelineChangedEventChannel; timelineController = Finder.TimelineController; timeFreezeEventChannel = Finder.TimeFreezeEventChannel; timeFreezeWarningEventChannel = Finder.TimeFreezeWarningEventChannel; timeFreezeController = Finder.TimeFreezeController; }
private void Awake() { timelineController = Finder.TimelineController; player = Finder.Player; timelineChangedEventChannel = Finder.TimelineChangedEventChannel; }
private void Start() { player = Finder.Player; timelineController = Finder.TimelineController; }