This commit is contained in:
hyskai 2024-11-04 07:06:58 +08:00
parent 45b2f333c9
commit 5fa9f73215

View File

@ -11,7 +11,7 @@ public class RoomJinsha : mount
public int type = 0; public int type = 0;
public int buy_type; public int buy_type;
private int toolsNumber = 0; public int toolsNumber = 0;
public TextMeshPro haveNumber_text; public TextMeshPro haveNumber_text;
public TextMeshPro toolsNumber_text; public TextMeshPro toolsNumber_text;
@ -44,7 +44,7 @@ public class RoomJinsha : mount
ChangeTextPro(); ChangeTextPro();
//loding(); loding();
// Allminer(); // Allminer();
jinsha.intance.OnType += addman; jinsha.intance.OnType += addman;
jinsha.intance.OnType += addtools; jinsha.intance.OnType += addtools;
@ -103,20 +103,20 @@ public class RoomJinsha : mount
return; return;
} }
//if (toolsNumber_text == null) if (toolsNumber_text == null)
//{ {
Debug.Log("¿ÛÇ®¼ì²â");
if (PlayerManager.Instance.GetNumer(MoneyType.Stones) < 11)
{
Promptmgr.Instance.PromptBubble("¹ºÂò¾í²»×ã", Color.black, Color.red);
return;
}
PlayerManager.Instance.SetMoney(MoneyType.Stones, -10);
}
// Debug.Log("¿ÛÇ®¼ì²â");
// if (PlayerManager.Instance.GetNumer(MoneyType.Stones) < 11)
// {
// Promptmgr.Instance.PromptBubble("¹ºÂò¾í²»×ã", Color.black, Color.red);
// return;
// }
// PlayerManager.Instance.SetMoney(MoneyType.Stones, -10);
//}
// Generate(1);
if (!Buy_succefful) return;
GetRoom(); GetRoom();
haveNumber--; haveNumber--;
@ -134,7 +134,7 @@ public class RoomJinsha : mount
newMiner.transform.SetParent(startPos); newMiner.transform.SetParent(startPos);
newMiner.transform.position = startPos.position; newMiner.transform.position = startPos.position;
Buy_succefful = false;
} }
@ -222,12 +222,12 @@ public class RoomJinsha : mount
} }
} }
//private async void loding() private async void loding()
//{ {
// Login login = new Login(); Login login = new Login();
// login.Phone = "123456666"; login.Phone = "123456666";
// await web.SendRequest(web.URL + "/Player/Login", "POST", JsonUtility.ToJson(login)); await web.SendRequest(web.URL + "/Player/Login", "POST", JsonUtility.ToJson(login));
//} }