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(); } }
public override void Init() { judge = StaticValue.judgeStyle; valueText.SetText(judge.ToString()); }