This commit is contained in:
wulongxiao 2024-12-30 14:04:36 +08:00
parent f381417b4a
commit 662e1755cd
2 changed files with 249 additions and 268 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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);
}
}
//鼠、牛、虎、兔、龙、蛇、马、羊、猴、鸡、狗、猪
}