add
This commit is contained in:
parent
45b2f333c9
commit
5fa9f73215
@ -11,7 +11,7 @@ public class RoomJinsha : mount
|
||||
public int type = 0;
|
||||
|
||||
public int buy_type;
|
||||
private int toolsNumber = 0;
|
||||
public int toolsNumber = 0;
|
||||
public TextMeshPro haveNumber_text;
|
||||
public TextMeshPro toolsNumber_text;
|
||||
|
||||
@ -44,7 +44,7 @@ public class RoomJinsha : mount
|
||||
|
||||
ChangeTextPro();
|
||||
|
||||
//loding();
|
||||
loding();
|
||||
// Allminer();
|
||||
jinsha.intance.OnType += addman;
|
||||
jinsha.intance.OnType += addtools;
|
||||
@ -103,20 +103,20 @@ public class RoomJinsha : mount
|
||||
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);
|
||||
//}
|
||||
// Generate(1);
|
||||
if (!Buy_succefful) return;
|
||||
Debug.Log("¿ÛÇ®¼ì²â");
|
||||
if (PlayerManager.Instance.GetNumer(MoneyType.Stones) < 11)
|
||||
{
|
||||
Promptmgr.Instance.PromptBubble("¹ºÂò¾í²»×ã", Color.black, Color.red);
|
||||
return;
|
||||
}
|
||||
PlayerManager.Instance.SetMoney(MoneyType.Stones, -10);
|
||||
}
|
||||
|
||||
|
||||
|
||||
GetRoom();
|
||||
haveNumber--;
|
||||
@ -134,7 +134,7 @@ public class RoomJinsha : mount
|
||||
newMiner.transform.SetParent(startPos);
|
||||
newMiner.transform.position = startPos.position;
|
||||
|
||||
Buy_succefful = false;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -222,14 +222,14 @@ public class RoomJinsha : mount
|
||||
}
|
||||
}
|
||||
|
||||
//private async void loding()
|
||||
//{
|
||||
// Login login = new Login();
|
||||
// login.Phone = "123456666";
|
||||
// await web.SendRequest(web.URL + "/Player/Login", "POST", JsonUtility.ToJson(login));
|
||||
//}
|
||||
private async void loding()
|
||||
{
|
||||
Login login = new Login();
|
||||
login.Phone = "123456666";
|
||||
await web.SendRequest(web.URL + "/Player/Login", "POST", JsonUtility.ToJson(login));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user