Set woman's IsCheck to true when switching to camera3, reset it on undo

This commit is contained in:
yangbear
2026-07-11 02:52:18 +08:00
parent f18b6812fc
commit 7d22163cf6
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -131,6 +131,14 @@ public class AudioManager : MonoBehaviour
c2.enabled = false;
c3.enabled = true;
// 在这里把 woman 的 IsCheck 设为 true
var woman = GameObject.Find("woman");
if (woman != null)
{
var anim = woman.GetComponent<Animator>();
if (anim != null) anim.SetBool("IsCheck", true);
}
float duration = 1.0f;
float elapsed = 0f;
@@ -207,6 +207,7 @@ public class ShoseClickHandler : MonoBehaviour
if (anim != null)
{
anim.SetBool("isCrouch", false);
anim.SetBool("IsCheck", false);
}
// 移回原位?如果最初在某个位置,PageController里有记录。这里只要不穿帮即可