示例#1
0
    IEnumerator NewRoundWithDelay()
    {
        cardInDelay = true;
        float totalDelay = SettingsUtil.GetCardDelay();

        roundSeperator.SetActive(totalDelay > MIN_ROUND_DELAY_TO_DISPLAY_ROUND_SEP);

        delayValue.text = "3";
        yield return(new WaitForSeconds(totalDelay / 3));

        delayValue.text = "2";
        yield return(new WaitForSeconds(totalDelay / 3));

        delayValue.text = "1";
        yield return(new WaitForSeconds(totalDelay / 3));

        roundSeperator.SetActive(false);

        if (totalDelay > MIN_ROUND_DELAY_TO_DISPLAY_ROUND_SEP)
        {
            gameAudioManager.PlayCardFlip();
        }
        NewRound();
        cardInDelay = false;
    }
示例#2
0
 // Use this for initialization
 void Start()
 {
     cardDelay.value     = SettingsUtil.GetCardDelay() * 4;
     musicVolume.value   = SettingsUtil.GetMusicVolume();
     sfxVolume.value     = SettingsUtil.GetSFXVolume();
     penalties.isOn      = SettingsUtil.IsPenaltiesAllowed();
     negativeScores.isOn = SettingsUtil.IsNegativeScoresAllowed();
 }