Exemple #1
0
 void Awake()
 {
     timelineController          = Finder.TimelineController;
     timelineChangedEventChannel = Finder.TimelineChangedEventChannel;
     virtualCamera = GetComponent <CinemachineVirtualCamera>();
     noiseSettings = virtualCamera.GetCinemachineComponent <CinemachineBasicMultiChannelPerlin>();
 }
Exemple #2
0
 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);
 }
Exemple #3
0
        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;
        }
Exemple #4
0
        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;
                }
            }
        }
Exemple #6
0
 private void Awake()
 {
     timelineController          = Finder.TimelineController;
     player                      = Finder.Player;
     timelineChangedEventChannel = Finder.TimelineChangedEventChannel;
 }
Exemple #7
0
 private void Awake()
 {
     timelineChangedEventChannel = Finder.TimelineChangedEventChannel;
 }