Beispiel #1
0
 public void RemoveUpgrade(Hex hex)
 {
     ResourceQuantity /= 2;
     if (Info.Strategic)
     {
         //tile.City.ResourceBalance.StrategicResourcesQuantity[Info.Name] -= ResourceQuantity;
     }
     else
     {
         //tile.City.ResourceBalance.NormalResourcesQuantity[Info.Name] -= ResourceQuantity;
     }
     ArmedForm.SetActive(false);
     RawForm.SetActive(true);
 }
Beispiel #2
0
 public void BuildUpgrade(Hex hex)
 {
     RawForm.SetActive(false);
     ArmedForm.SetActive(true);
     ResourceQuantity *= 2;
     //ArmedForm.transform.position += tile.Tile.transform.position;
     //if (Info.Strategic)
     //{
     //    tile.City.ResourceBalance.StrategicResourcesQuantity[Info.Name] += ResourceQuantity;
     //}
     //else
     //{
     //    tile.City.ResourceBalance.NormalResourcesQuantity[Info.Name] += ResourceQuantity;
     //}
 }
Beispiel #3
0
 public NaturalGood(NaturalGoodAsset asset, Hex hex)
 {
     Info         = asset;
     ResourceName = asset.Name;
     //RawForm = GameObject.Instantiate(Info.RawForm,tile.Tile.transform);
     //ArmedForm = GameObject.Instantiate(Info.ArmedForm, tile.Tile.transform);
     ArmedForm.SetActive(false);
     foreach (Collider c in RawForm.GetComponents <Collider>())
     {
         c.enabled = false;
     }
     foreach (Collider c in ArmedForm.GetComponents <Collider>())
     {
         c.enabled = false;
     }
 }