public void Launch(Common.JUDGE judge) { this.text.text = Common.JudgeToString(judge); this.text.enabled = true; this.time = 0f; this.isShowing = true; }
public void Damage(Common.JUDGE judge) { if (this.hp <= 0) { return; } switch (judge) { case Common.JUDGE.MISS: this.hp -= this.missPoint; if (this.hp <= 0) { this.hp = 0; } break; case Common.JUDGE.BAD: this.hp -= this.badPoint; if (this.hp <= 0) { this.hp = 0; } break; } this.hpValueManager.UpdateValue(this.hp); //if (this.hp == 0) this.gameManager.GameOver(); }
public void ScoreAdd(Common.JUDGE judge) { //Debug.Log(this.name + ": " + judge.ToString()); switch (judge) { case Common.JUDGE.MISS: this.missCount++; break; case Common.JUDGE.BAD: score += this.badPoint; this.badCount++; break; case Common.JUDGE.GOOD: score += this.goodPoint; this.goodCount++; break; case Common.JUDGE.GREAT: score += this.greatPoint; this.greatCount++; break; case Common.JUDGE.PERFECT: score += this.perfectPoint; this.perfectCount++; break; } this.scoreValueManager.UpdateValue(this.score); }