add
This commit is contained in:
parent
f381417b4a
commit
662e1755cd
File diff suppressed because it is too large
Load Diff
@ -165,50 +165,18 @@ public class WaterPanel : MonoBehaviour
|
||||
petExpFill.fillAmount = (float)info.data.Info.exp / info.data.Info.upgrade_exp;
|
||||
}
|
||||
}
|
||||
|
||||
public List<string> shenxiao = new List<string>();
|
||||
void ShowChineseZodiac(string name)
|
||||
{
|
||||
//鼠、牛、虎、兔、龙、蛇、马、羊、猴、鸡、狗、猪
|
||||
switch (name)
|
||||
for (int i = 0; i < shenxiao.Count; i++)
|
||||
{
|
||||
case "鼠":
|
||||
ChineseZodiac[0].gameObject.SetActive(true);
|
||||
break;
|
||||
case "牛":
|
||||
ChineseZodiac[1].gameObject.SetActive(true);
|
||||
break;
|
||||
case "虎":
|
||||
ChineseZodiac[2].gameObject.SetActive(true);
|
||||
break;
|
||||
case "兔":
|
||||
ChineseZodiac[3].gameObject.SetActive(true);
|
||||
break;
|
||||
case "龙":
|
||||
ChineseZodiac[4].gameObject.SetActive(true);
|
||||
break;
|
||||
case "蛇":
|
||||
ChineseZodiac[5].gameObject.SetActive(true);
|
||||
break;
|
||||
case "马":
|
||||
ChineseZodiac[6].gameObject.SetActive(true);
|
||||
break;
|
||||
case "羊":
|
||||
ChineseZodiac[7].gameObject.SetActive(true);
|
||||
break;
|
||||
case "猴":
|
||||
ChineseZodiac[8].gameObject.SetActive(true);
|
||||
break;
|
||||
case "鸡":
|
||||
ChineseZodiac[9].gameObject.SetActive(true);
|
||||
break;
|
||||
case "狗":
|
||||
ChineseZodiac[10].gameObject.SetActive(true);
|
||||
break;
|
||||
case "猪":
|
||||
ChineseZodiac[11].gameObject.SetActive(true);
|
||||
break;
|
||||
if (shenxiao[i].Equals(name))
|
||||
{
|
||||
ChineseZodiac[i].gameObject.SetActive(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//鼠、牛、虎、兔、龙、蛇、马、羊、猴、鸡、狗、猪
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user