private void OnClickItem(GMButtonCommon btn) { Mgrs.audioMgr.PlaySE(DEFINE_AUDIO.SE_TYPE.GAME_TAP); int number = btn.GetParam <int> (); this.currentSum += number; if (this.currentSum.Equals(this.resultSum)) { this.GameClear(); return; } if (this.currentSum > this.resultSum) { this.GameOver(); return; } }
private void OnClickItem(GMButtonCommon btn) { int number = btn.GetParam <int> (); Mgrs.audioMgr.PlaySE(DEFINE_AUDIO.SE_TYPE.GAME_TAP); if (this.mode.Equals(MODE.HIGH)) { this.currentNum--; if (!number.Equals(this.currentNum)) { this.GameOver(); return; } if (number.Equals(1)) { this.GameClear(); return; } } else { this.currentNum++; if (!number.Equals(this.currentNum)) { this.GameOver(); return; } if (number.Equals(this.limit)) { this.GameClear(); return; } } }