Collectables stored + Metal and Oxygen added to game

This commit is contained in:
Sewmina
2022-04-21 07:08:38 +05:30
parent 4e63909cf5
commit fa429899d6
9 changed files with 867 additions and 88 deletions

View File

@@ -86,7 +86,9 @@ public class LoginManager : MonoBehaviour
PlayerPrefs.SetString("password", login_password.text);
PlayerPrefs.Save();}
DBmanager.username = login_username.text;
DBmanager.GetBuildingStates(www.text.Split('\t')[3]);
DBmanager.GetBuildingStates(www.text.Split('\t')[5]);
DBmanager.SetOxygen(int.Parse(www.text.Split('\t')[4]),true);
DBmanager.SetMetal(int.Parse(www.text.Split('\t')[3]),true);
DBmanager.SetGems(int.Parse(www.text.Split('\t')[2]),true);
DBmanager.SetCoins(int.Parse(www.text.Split('\t')[1]),true);