Ejemplo n.º 1
0
        // Initialises all components underneath master.
        public override void InitialiseAll()
        {
            base.InitialiseAll();

            particles.Initialise();

            movementController.Initialise();

            playerProperties.Initialise();

            sounds.Initialise();

            movementController.onCollision += OnPlayerHit;

            movementController.onNearMiss += OnPlayerNearMiss;

            playerProperties.onPlayerLose += OnPlayerLose;

            onMeterChanged += playerProperties.DecaySanityConstant;

            playerProperties.OnSoundChanged += sounds.AdjustAudioSourceVolume;

            onPlayerLost += sounds.StopBackgroundSound;

            movementController.onTimeChange += SetDecaySpeed;
        }