Ejemplo n.º 1
0
 /// <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());
 }
Ejemplo n.º 2
0
        public void InitializeStage()
        {
            objectManager.Clear();
            objectManager.InitializeStage(Parameter.StageNo);

            CSVReader.Read("StageImgCount");
            int imgCount = CSVReader.GetIntData()[Parameter.StageNo - 1][0];

            Parameter.SetStageWidth(imgCount);
            drawStage = new DrawStage("Stage" + Parameter.StageNo + "Map_", imgCount);
        }
Ejemplo n.º 3
0
    /// <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.等待中;
        }
    }
Ejemplo n.º 4
0
    /// <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.等待中;
    }
Ejemplo n.º 5
0
 /// <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());
 }