Пример #1
0
    public override void ChangeValue(bool up, bool down, bool submit)
    {
        if (up || down)
        {
            int judgeLength = Enum.GetNames(typeof(JudgeStyle)).Length - 1;

            if (up && (int)judge < judgeLength)
            {
                judge++;
                Find.GetAudioManager().PlaySE("ValueMove");
            }
            if (down && judge > 0)
            {
                judge--;
                Find.GetAudioManager().PlayOneShotSE("ValueMove");
            }

            StaticValue.judgeStyle = judge;

            valueText.SetText(judge.ToString());
            ChangeDetail();
        }
    }
Пример #2
0
 public override void Init()
 {
     judge = StaticValue.judgeStyle;
     valueText.SetText(judge.ToString());
 }