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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user