/// <summary> /// 開啟當前階段的提示 /// </summary> /// <param name="currentStage">目前進行階段</param> public void ShowStageHint(DrawStage currentStage) { this.currentStageHintObject = (GameObject)Instantiate(this.StageHintObject); SmoothMoves.BoneAnimation boneAnimation = this.currentStageHintObject.GetComponent <SmoothMoves.BoneAnimation>(); boneAnimation.playAutomatically = false; boneAnimation.Play(currentStage.ToString()); }
/// <summary> /// 切換作畫階段 /// </summary> /// <param name="nextStage">下一階段</param> public void ChangeDrawStage(DrawStage nextStage) { if (nextStage == DrawStage.等待中) { return; } if (this.currentStageHintObject != null) { Destroy(this.currentStageHintObject); } this.物件區背景.SetActive(false); if (nextStage == DrawStage.寄信) { this.CurrentDrawStage = DrawStage.等待中; this.現代郎世寧.SetActive(false); //將左上"現代郎世寧"關閉 this.截圖使用物件.SetActive(true); //開啟"截圖使用物件" State.script.光源的控制桿.SetActive(false); ScreenShot.script.RunScreenCapture(); return; } else if (nextStage == DrawStage.簽名) { this.CurrentDrawStage = DrawStage.簽名; this.現代郎世寧.SetActive(false); //將左上"現代郎世寧"關閉 this.截圖使用物件.SetActive(true); //開啟"截圖使用物件" State.script.光源的控制桿.SetActive(false); this.簽名物件.SetActive(true); return; } GameObject obj = (GameObject)Instantiate(this.TitleShowObject); SmoothMoves.BoneAnimation boneAnimation = obj.GetComponent <SmoothMoves.BoneAnimation>(); boneAnimation.playAutomatically = false; boneAnimation.Play(nextStage.ToString()); //開頭動畫狀態進行觸碰事件偵測 if (nextStage == DrawStage.開頭動畫) { this.CurrentDrawStage = DrawStage.開頭動畫; } else { this.CurrentDrawStage = DrawStage.等待中; } }
/// <summary> /// 切換作畫階段 /// </summary> /// <param name="nextStage">下一階段</param> public void ChangeDrawStage(DrawStage nextStage) { if (nextStage == DrawStage.等待中) return; if (this.currentStageHintObject != null) Destroy(this.currentStageHintObject); this.物件區背景.SetActive(false); if (nextStage == DrawStage.寄信) { this.CurrentDrawStage = DrawStage.等待中; this.現代郎世寧.SetActive(false); //將左上"現代郎世寧"關閉 this.截圖使用物件.SetActive(true); //開啟"截圖使用物件" State.script.光源的控制桿.SetActive(false); ScreenShot.script.RunScreenCapture(); return; } else if (nextStage == DrawStage.簽名) { this.CurrentDrawStage = DrawStage.簽名; this.現代郎世寧.SetActive(false); //將左上"現代郎世寧"關閉 this.截圖使用物件.SetActive(true); //開啟"截圖使用物件" State.script.光源的控制桿.SetActive(false); this.簽名物件.SetActive(true); return; } GameObject obj = (GameObject)Instantiate(this.TitleShowObject); SmoothMoves.BoneAnimation boneAnimation = obj.GetComponent<SmoothMoves.BoneAnimation>(); boneAnimation.playAutomatically = false; boneAnimation.Play(nextStage.ToString()); //開頭動畫狀態進行觸碰事件偵測 if (nextStage == DrawStage.開頭動畫) this.CurrentDrawStage = DrawStage.開頭動畫; else this.CurrentDrawStage = DrawStage.等待中; }
/// <summary> /// 開啟當前階段的提示 /// </summary> /// <param name="currentStage">目前進行階段</param> public void ShowStageHint(DrawStage currentStage) { this.currentStageHintObject = (GameObject)Instantiate(this.StageHintObject); SmoothMoves.BoneAnimation boneAnimation = this.currentStageHintObject.GetComponent<SmoothMoves.BoneAnimation>(); boneAnimation.playAutomatically = false; boneAnimation.Play(currentStage.ToString()); }