SkinShop done and building menus integrated

This commit is contained in:
Sewmina
2022-09-01 03:40:19 +05:30
parent d30fe75b7d
commit 37d9c49e69
20 changed files with 14925 additions and 6084 deletions

View File

@@ -21,7 +21,7 @@ public class CollectBtn : MonoBehaviour
void Update()
{
collectableAmount=((DateTime.UtcNow - lastCollected).TotalSeconds * productionRate);
collectableAmount=((DateTime.UtcNow - lastCollected).TotalSeconds * ((productionRate/60f)/60f));
txt.text = ((int)collectableAmount).ToString();
btn.interactable = collectableAmount > 1;
@@ -35,7 +35,7 @@ public class CollectBtn : MonoBehaviour
}
async void OnClick(){
collectableAmount=((DateTime.Now - lastCollected).TotalSeconds * productionRate);
collectableAmount=((DateTime.UtcNow - lastCollected).TotalSeconds * ((productionRate/60f)/60f));
lastCollected = await DBmanager.GetNetworkTime();
switch (resourceType){
case CollectablesData.ResourceType.Metal: