我正在尝试制作像神庙逃亡2这样的游戏。我想要与问题中所述并附带截图相同的效果。我尝试了动画,当我将硬币动画到中心顶部时它可以工作,但是左上角就没有成功。请帮忙。
谢谢
以下是代码:
以下是代码:
if (col.gameObject.tag == "500") {
score = CryptograpicEncryption.GetInt ("ScoreKey") + pick500;
CryptograpicEncryption.SetInt ("ScoreKey", score);
ScoreCount.text = "Cash Collected: " + CryptograpicEncryption.GetInt ("ScoreKey").ToString ();
col.gameObject.GetComponent<Animator> ().SetTrigger ("openNote");
col.gameObject.transform.GetChild (1).GetChild (1).gameObject.SetActive (false);
col.gameObject.GetComponent<Animator> ().SetTrigger ("highLeft");
}