示例#1
0
 private void SetResources()
 {
     foreach (var resource in Stats.Resources)
     {
         for (int i = 0; i < resource.Number; i++)
         {
             ResourcesNeeded.Add(resource.Type);
         }
     }
 }
示例#2
0
 public void AddResource(ResourceType resource)
 {
     ResourcesNeeded.Remove(resource);
     ResourcesCollected++;
 }