Exemplo n.º 1
0
    public override void TriggerEvent()
    {
        if (dynamicCameraHorizontal)
        {
            StaticEvent.LoadLevel(new LevelRequirement(newPlayerPosition, newCameraPosition, level, dynamicCameraHorizontal, cameraLeftThreshold, cameraRightThreshold, cameraSize));
        }
        else
        {
            StaticEvent.LoadLevel(new LevelRequirement(newPlayerPosition, newCameraPosition, level, cameraSize));
        }

        if (levelMusic.Any())
        {
            ResetSceneMusic();
        }
        if (tasteAudio != null)
        {
            if (!removeTasteAudio)
            {
                AddTasteAudio();
            }
            else
            {
                RemoveTasteAudio();
            }
        }
    }
Exemplo n.º 2
0
 private void Start()
 {
     StaticEvent.LoadLevel(gameStateData[currentGameState]);
 }