/// <summary>
 /// キャラクターを写すHoloPlayCaptureを無効にする(シーン毎に固定)
 /// </summary>
 /// <param name="previousSceneNumber"></param>
 public void DeActivateCharacter()
 {
     holoCaptures = GetGameObjectUtility.GetChildrenFromParent("HoloPlayCaptures", "HoloPlay Capture");
     foreach (GameObject hc in holoCaptures)
     {
         hc.SetActive(false);
     }
 }
Example #2
0
    /// <summary>
    /// 経過した時間によって、写し出すシーンを変更する
    /// </summary>
    /// <param name="list"></param>
    /// <param name="elapsedTime"></param>
    public void DisplayScene(List <SceneInformation> list, double elapsedTime)
    {
        // Initialize
        if (isFirstRun)
        {
            centerObject     = GameObject.Find("Center");
            displayCharacter = new DisplayCharacter();
            holoCaptures     = GetGameObjectUtility.GetChildrenFromParent("HoloPlayCaptures", "HoloPlay Capture");

            holoCamera = new HoloCamera();

            isFirstRun = false;
        }

        // シーンの切り替え
        if (list[listIndex] != null && list[listIndex].EndTime <= elapsedTime)
        {
            listIndex++;
            doneSelectHoloplayCap = false;
        }

        if (list[listIndex] == null)
        {
            Debug.Log("最後のシーンまで行きました。");
            return;
        }

        var nextSceneNumber = list[listIndex].SceneNumber - 1;

        if (!doneSelectHoloplayCap)
        {
            displayCharacter.ChangeCharacter(holoCaptures, previousSceneNumber, nextSceneNumber);

            this.previousSceneNumber = nextSceneNumber;
            doneSelectHoloplayCap    = true;
        }

        holoCamera.RotationYAxis(centerObject, nextSceneNumber);

        nextSceneNumber = list[listIndex].SceneNumber;
        lyricEffect.DisplayLyrics(nextSceneNumber, list[listIndex].SceneLyrics);
    }