Set woman's IsCheck to true when switching to camera3, reset it on undo
This commit is contained in:
@@ -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里有记录。这里只要不穿帮即可
|
||||
|
||||
Reference in New Issue
Block a user