Пример #1
0
 private void Awake()
 {
     Instance = this;
 }
Пример #2
0
 private string CreateResourceCountText(ResourcesSystem.ResourceInfo resourceInfo)
 {
     _resourceValue = Converter.ValueToString(_resourcesStorage.GetResourceValue(resourceInfo.GetResourceType()));
     return(resourceInfo.GetName() + _resourceValue + ResourcesSystem.GetUnitsOfMeasurement());
 }
 internal void SetResourceNameAndValue(string name, BigInteger value)
 {
     _resourceValue     = value;
     _resourceName.text = name + Converter.ValueToString(value) + ResourcesSystem.GetUnitsOfMeasurement();
 }
Пример #4
0
 private void CalculateStrings()
 {
     _calcMoney            = Converter.ValueToString(StatsSystem.Instance.GetMoney());
     _calcAllResourceSold  = ALL_RESOURCE_SOLD_TEXT + Converter.ValueToString(ResourceSalesAccount.GetAllResourceSoldValue()) + ResourcesSystem.GetUnitsOfMeasurement();
     _calcShipsCount       = MAX_SHIP_COUNT_TEXT + Converter.ValueToString(StatsSystem.Instance.GetMaxShipsCount());
     _calcactiveShipsCount = ACTIVE_SHIPS_COUNT_TEXT + Converter.ValueToString(StatsSystem.Instance.GetActiveShipsCount());
 }