add
This commit is contained in:
parent
662e1755cd
commit
b676d95df1
File diff suppressed because it is too large
Load Diff
@ -16,7 +16,9 @@ public class Lottery : MonoBehaviour
|
||||
public List<PetFightingBtn> fightinglist = new List<PetFightingBtn>();
|
||||
public Button ClosefightingBtn;
|
||||
public List<GameObject> objitem = new List<GameObject>();
|
||||
async void OnEnable()
|
||||
public List<string> shenxiaocard = new List<string>();
|
||||
|
||||
async void OnEnable()
|
||||
{
|
||||
TreeInfo info = await Scene_main_jiekou.instance.TreeInfoS();
|
||||
WaterText.text = info.Data.Water.ToString();
|
||||
@ -57,48 +59,16 @@ public class Lottery : MonoBehaviour
|
||||
|
||||
Sprite showSprite(string n)
|
||||
{
|
||||
for (int i = 0; i < shenxiaocard.Count; i++)
|
||||
{
|
||||
if (shenxiaocard[i].Equals(name))
|
||||
{
|
||||
return petsp[i];
|
||||
}
|
||||
|
||||
switch (n)
|
||||
{
|
||||
case "報":
|
||||
return petsp[0];
|
||||
break;
|
||||
case "釘":
|
||||
return petsp[1];
|
||||
break;
|
||||
case "拶":
|
||||
return petsp[2];
|
||||
break;
|
||||
case "傭":
|
||||
return petsp[3];
|
||||
break;
|
||||
case "霜":
|
||||
return petsp[4];
|
||||
break;
|
||||
case "敷":
|
||||
return petsp[5];
|
||||
break;
|
||||
case "瀧":
|
||||
return petsp[6];
|
||||
break;
|
||||
case "剪":
|
||||
return petsp[7];
|
||||
break;
|
||||
case "削":
|
||||
return petsp[8];
|
||||
break;
|
||||
case "痔":
|
||||
return petsp[9];
|
||||
break;
|
||||
case "昂":
|
||||
return petsp[10];
|
||||
break;
|
||||
case "幎":
|
||||
return petsp[11];
|
||||
break;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
async void LotteryClick()
|
||||
|
Loading…
Reference in New Issue
Block a user