コード例 #1
0
 public int Cost(ResourceType type, int CurrentLevel = 0)
 {
     if (type == ResourceType.Wood)
     {
         return(WoodDatabase.Cost(CurrentLevel));
     }
     else
     {
         return(MetalDatabase.Cost(CurrentLevel));
     }
 }