Beispiel #1
0
        /// <summary>
        /// ラビッツモデルを生成する
        /// </summary>
        /// <param name="modelPathAnderResource"></param>
        /// <returns></returns>
        private LiplisModel CreateModelRabbits(string modelPathAnderResource, int AllocationId)
        {
            //モデルパス生成
            string modelPath = UtilUnityPath.GetStreamingAssetsPath() + "/" + modelPathAnderResource;

            //モデル設定を取得する
            LiplisMoonlightModel lmm = PrisetModelSettingLoader.LoadClassFromJson <LiplisMoonlightModel>(modelPath + ModelPathDefine.LIPLIS_MODEL_JSON);
            LiplisToneSetting    ltn = PrisetModelSettingLoader.LoadClassFromJson <LiplisToneSetting>(modelPath + ModelPathDefine.SETTINGS + ModelPathDefine.LIPLIS_TONE_SETTING);
            LiplisChatSetting    lch = PrisetModelSettingLoader.LoadClassFromJson <LiplisChatSetting>(modelPath + ModelPathDefine.SETTINGS + ModelPathDefine.LIPLIS_CHAT_SETTING);

            //ウインドウイメージの読み込み
            Texture2D TextureWindow    = PrisetModelSettingLoader.LoadTexture(modelPath + ModelPathDefine.IMAGES + ModelPathDefine.IMG_WINDOW) as Texture2D;
            Texture2D TextureLogWindow = PrisetModelSettingLoader.LoadTexture(modelPath + ModelPathDefine.IMAGES + ModelPathDefine.IMG_WINDOW_LOG) as Texture2D;
            Texture2D TextureCharIcon  = PrisetModelSettingLoader.LoadTexture(modelPath + ModelPathDefine.IMAGES + ModelPathDefine.IMG_ICON_CHAR) as Texture2D;

            //モデルを追加する
            return(new LiplisModel(AllocationId, CanvasRendering, modelPath, ctrlTalk.NextTalkOrSkip, lmm, ltn, lch, TextureWindow, TextureLogWindow, TextureCharIcon));
        }