add
This commit is contained in:
parent
662e1755cd
commit
b676d95df1
File diff suppressed because it is too large
Load Diff
@ -16,6 +16,8 @@ public class Lottery : MonoBehaviour
|
|||||||
public List<PetFightingBtn> fightinglist = new List<PetFightingBtn>();
|
public List<PetFightingBtn> fightinglist = new List<PetFightingBtn>();
|
||||||
public Button ClosefightingBtn;
|
public Button ClosefightingBtn;
|
||||||
public List<GameObject> objitem = new List<GameObject>();
|
public List<GameObject> objitem = new List<GameObject>();
|
||||||
|
public List<string> shenxiaocard = new List<string>();
|
||||||
|
|
||||||
async void OnEnable()
|
async void OnEnable()
|
||||||
{
|
{
|
||||||
TreeInfo info = await Scene_main_jiekou.instance.TreeInfoS();
|
TreeInfo info = await Scene_main_jiekou.instance.TreeInfoS();
|
||||||
@ -57,45 +59,13 @@ public class Lottery : MonoBehaviour
|
|||||||
|
|
||||||
Sprite showSprite(string n)
|
Sprite showSprite(string n)
|
||||||
{
|
{
|
||||||
|
for (int i = 0; i < shenxiaocard.Count; i++)
|
||||||
switch (n)
|
|
||||||
{
|
{
|
||||||
case "報":
|
if (shenxiaocard[i].Equals(name))
|
||||||
return petsp[0];
|
{
|
||||||
break;
|
return petsp[i];
|
||||||
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;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user