void Awake() { timelineController = Finder.TimelineController; timelineChangedEventChannel = Finder.TimelineChangedEventChannel; virtualCamera = GetComponent <CinemachineVirtualCamera>(); noiseSettings = virtualCamera.GetCinemachineComponent <CinemachineBasicMultiChannelPerlin>(); }
private void Awake() { timelineChangedEventChannel = Finder.TimelineChangedEventChannel; tilemap = GetComponent <Tilemap>(); tilemapCollider2D = GetComponent <TilemapCollider2D>(); originalColor = tilemap.color; ghostColor = new Color(originalColor.r, originalColor.g, originalColor.b, ALPHA_OF_COLOR); }
private void Awake() { timelineChangedEventChannel = Finder.TimelineChangedEventChannel; tilemap = GetComponent <Tilemap>(); rigidBody2D = GetComponent <Rigidbody2D>(); tileMapCollider2D = GetComponent <TilemapCollider2D>(); originalColor = tilemap.color; ghostColor = new Color(originalColor.r, originalColor.g, originalColor.b, ALPHA_OF_COLOR); Deactivate(); ignoreFirstTimelineChanged = true; }
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() { timelineChangedEventChannel = Finder.TimelineChangedEventChannel; // Needs to be subscribed at the beginning and never unsubscribed // because the state has to update even when the object is disabled timelineChangedEventChannel.OnTimelineChanged += TimelineChanged; GameObject[] children = this.Children(); foreach (var child in children) { if (child.CompareTag(R.S.Tag.MainTimeline)) { primaryTimelineObject = child; } if (child.CompareTag(R.S.Tag.SecondaryTimeline)) { secondaryTimelineObject = child; } } }
private void Awake() { timelineController = Finder.TimelineController; player = Finder.Player; timelineChangedEventChannel = Finder.TimelineChangedEventChannel; }
private void Awake() { timelineChangedEventChannel = Finder.TimelineChangedEventChannel; }