コード例 #1
0
    public void IncreaseDeterioration()
    {
        switch (currentDeteriorationLevel)
        {
        case DeteriorationLevel.PERFECT:
            currentDeteriorationLevel = DeteriorationLevel.NORMAL;
            break;

        case DeteriorationLevel.NORMAL:
            currentDeteriorationLevel = DeteriorationLevel.RUINED;
            break;

        default:
            break;
        }
    }
コード例 #2
0
 public void Repair()
 {
     currentDeteriorationLevel = DeteriorationLevel.PERFECT;
 }