Ejemplo n.º 1
0
    /// <summary>
    /// Call update methods every frame
    /// </summary>
    private void Update()
    {
        if (!UsedOnMenu)
        {
            AudioManager();
            UpdateFusionnedColor();
            HighlighterGenerator();
            UpdateExistingHighlighters();
            RespawnFallingPlayers();
            MoveGhosties();
            CheckForEnd();

            cameraBehavior.UpdateCamera();
            int stageId = cameraBehavior.GetCameraIndex();
            if (stageId >= 0)
            {
                CurrentStageId = cameraBehavior.GetCameraIndex();
            }
            ReplaceParticleSystem();
        }
    }