コード例 #1
0
 public void Launch(Common.JUDGE judge)
 {
     this.text.text    = Common.JudgeToString(judge);
     this.text.enabled = true;
     this.time         = 0f;
     this.isShowing    = true;
 }
コード例 #2
0
        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();
        }
コード例 #3
0
        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);
        }