Exemple #1
0
 private void Awake()
 {
     playerSpriteRenderer       = Finder.Player.GetComponentInChildren <SpriteRenderer>();
     playerDeathEventChannel    = Finder.PlayerDeathEventChannel;
     levelCompletedEventChannel = Finder.LevelCompletedEventChannel;
     playerMover = GetComponentInParent <PlayerMover>();
 }
Exemple #2
0
        private void Awake()
        {
            menuPageChangedEventChannel = Finder.MenuPageChangedEventChannel;
            levelCompletedEventChannel  = Finder.LevelCompletedEventChannel;

            mainController             = Finder.MainController;
            dispatcher                 = Finder.Dispatcher;
            saveSystem                 = Finder.SaveSystem;
            activePage                 = firstPage;
            isActivePageCreateGameFile = false;
        }
Exemple #3
0
        private void Awake()
        {
            dispatcher = Finder.Dispatcher;
            playerDeathEventChannel      = Finder.PlayerDeathEventChannel;
            levelCompletedEventChannel   = Finder.LevelCompletedEventChannel;
            savedDataLoadedEventChannel  = Finder.SavedDataLoadedEventChannel;
            savedSceneLoadedEventChannel = Finder.SavedSceneLoadedEventChannel;
            newGameLoadedEventChannel    = Finder.NewGameLoadedEventChannel;
            saveSystem = Finder.SaveSystem;
            scenes     = GetComponentInChildren <Scenes>();

            currentScene = startingScene;
        }
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;
        }
        protected override void Awake()
        {
            base.Awake();

            levelCompletedEventChannel = Finder.LevelCompletedEventChannel;
        }
Exemple #6
0
 private void Awake()
 {
     playerDeathEventChannel    = Finder.PlayerDeathEventChannel;
     levelCompletedEventChannel = Finder.LevelCompletedEventChannel;
     image = GetComponent <Image>();
 }