Example #1
0
    public void StartCharacter(int idToStart)
    {
        characterCanvas.SetActive(true);
        if (idToStart == lysID)
        {
            characterImage.texture = lysSprite;
            audioManager.PlayLysTheme();
        }
        else if (idToStart == jacqueID)
        {
            characterImage.texture = jacqueSprite;
            audioManager.PlayJacqueTheme();
        }
        else if (idToStart == steelID)
        {
            characterImage.texture = steelSprite;
            audioManager.PlaySteelTheme();
        }
        else if (idToStart == angelID)
        {
            characterImage.texture = angelSprite;
            audioManager.PlayAngelTheme();
        }

        audioManager.StopDaySong();

        characterID = idToStart;
        characterCanvas.SetActive(true);
    }