// Update is called once per frame void Update() { //一定時間ごとにキャラをアニメーションさせる。 animationCounter += Time.deltaTime; if (animationCounter > 1.0f) { sampleBandMemberAniamtion.BeginAnimation(1, 1, false); playerAvatorAnimation.BeginAnimation(2, 1, false); animationCounter = 0; } //クリックで次に進む if (Input.GetMouseButton(0)) { GameObject.Find("PhaseManager").GetComponent <PhaseManager>().SetPhase("Play"); } }
void Update() { //每个时间都会让角色动画。 animationCounter += Time.deltaTime; if (animationCounter > 1.0f) { sampleBandMemberAniamtion.BeginAnimation(1, 1, false); playerAvatorAnimation.BeginAnimation(2, 1, false); animationCounter = 0; } //点击下一步,如果检测到玩家点击了鼠标,开始游戏 if (Input.GetMouseButton(0)) { GameObject.Find("PhaseManager").GetComponent <PhaseManager>().SetPhase("Play"); } }
// Update is called once per frame void Update() { //每隔一定时间让角色播放动画 animationCounter += Time.deltaTime; if (animationCounter > 1.0f) { sampleBandMemberAniamtion.BeginAnimation(1, 1, false); playerAvatorAnimation.BeginAnimation(2, 1, false); animationCounter = 0; } //通过点击进入下一个 if (Input.GetMouseButton(0)) { GameObject.Find("PhaseManager").GetComponent <PhaseManager>().SetPhase("Play"); } }