public void Update() { if (PlayerData.getInstance().isChange) { PlayerData.getInstance().isChange = false; animator.SetInteger("dancePlay", 0); } else { dance = PlayerData.getInstance().danceNum; animator.SetInteger("dancePlay", dance); } Dance.getInstance(); }