Exemplo n.º 1
0
 void Awake()
 {
     timelineController          = Finder.TimelineController;
     timelineChangedEventChannel = Finder.TimelineChangedEventChannel;
     virtualCamera = GetComponent <CinemachineVirtualCamera>();
     noiseSettings = virtualCamera.GetCinemachineComponent <CinemachineBasicMultiChannelPerlin>();
 }
Exemplo n.º 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);
 }
Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 5
0
        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;
                }
            }
        }
Exemplo n.º 6
0
 private void Awake()
 {
     timelineController          = Finder.TimelineController;
     player                      = Finder.Player;
     timelineChangedEventChannel = Finder.TimelineChangedEventChannel;
 }
Exemplo n.º 7
0
 private void Awake()
 {
     timelineChangedEventChannel = Finder.TimelineChangedEventChannel;
 }