diff --git a/.github/workflows/activation.yml b/.github/workflows/activation.yml
index e2e32d7..bd7fdb2 100644
--- a/.github/workflows/activation.yml
+++ b/.github/workflows/activation.yml
@@ -11,7 +11,7 @@ jobs:
id: getManualLicenseFile
uses: game-ci/unity-request-activation-file@v2
with:
- unityVersion: 2022.2.5f1
+ unityVersion: 2022.2.15f1
# Upload artifact (Unity_v20XX.X.XXXX.alf)
- name: Expose as artifact
uses: actions/upload-artifact@v3.1.1
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
deleted file mode 100644
index 42d417d..0000000
--- a/.github/workflows/build.yml
+++ /dev/null
@@ -1,53 +0,0 @@
-name: Build
-
-env:
- UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
-
-# Controls when the action will run.
-on:
- workflow_dispatch: {}
- push:
- branches:
- - main
- paths-ignore:
- - '.github/**'
- # Triggers the workflow on push or pull request events but only for the main branch
-
-# A workflow run is made up of one or more jobs that can run sequentially or in parallel
-jobs:
- build:
- runs-on: ubuntu-latest
- strategy:
- fail-fast: false
- matrix:
- projectPath:
- - .
- unityVersion:
- - 2022.2.5f1
- targetPlatform:
- - WebGL
- steps:
- - name: Checkout
- uses: actions/checkout@v3.2.0
- with:
- lfs: true
- clean: false
-
-# Cache
- - uses: actions/cache@v3
- with:
- path: Library
- key: Library
-
- # Build
- - name: Build project
- uses: game-ci/unity-builder@v2.1.2
- with:
- unityVersion: ${{ matrix.unityVersion }}
- targetPlatform: ${{ matrix.targetPlatform }}
-
- # Output
- - uses: actions/upload-artifact@v3.1.1
- with:
- name: Build-${{ matrix.targetPlatform }}
- path: build/${{ matrix.targetPlatform }}
diff --git a/.github/workflows/check-meta-files.yml b/.github/workflows/check-meta-files.yml
index 26b1af3..080549d 100644
--- a/.github/workflows/check-meta-files.yml
+++ b/.github/workflows/check-meta-files.yml
@@ -9,6 +9,7 @@ on:
pull_request:
branches:
- main
+ - develop
jobs:
meta-check:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index db8a3da..a6710f7 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -8,6 +8,7 @@ on:
pull_request:
branches:
- main
+ - develop
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
diff --git a/Assets/EasyADV/BackgroundImage.meta b/Assets/EasyADV/BackgroundImage.meta
new file mode 100644
index 0000000..237bd3c
--- /dev/null
+++ b/Assets/EasyADV/BackgroundImage.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 576c8f3745a2481e8d4ab1867c620326
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/EasyADV/BackgroundImage/.gitkeep b/Assets/EasyADV/BackgroundImage/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/Assets/EasyADV/CharacterImage.meta b/Assets/EasyADV/CharacterImage.meta
new file mode 100644
index 0000000..4d78160
--- /dev/null
+++ b/Assets/EasyADV/CharacterImage.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: a9d7841a61dc469ca6b8a9a9ac69019c
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/EasyADV/CharacterImage/.gitkeep b/Assets/EasyADV/CharacterImage/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/Assets/EasyADV/Prefabs.meta b/Assets/EasyADV/Prefabs.meta
new file mode 100644
index 0000000..7e7692e
--- /dev/null
+++ b/Assets/EasyADV/Prefabs.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 13d5864d1384f28448f6c7bd1f55623b
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/EasyADV/Prefabs/Background.prefab b/Assets/EasyADV/Prefabs/Background.prefab
new file mode 100644
index 0000000..f3ce1c5
--- /dev/null
+++ b/Assets/EasyADV/Prefabs/Background.prefab
@@ -0,0 +1,92 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!1 &7114562640169053628
+GameObject:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ serializedVersion: 6
+ m_Component:
+ - component: {fileID: 997822693772618305}
+ - component: {fileID: 2866147896293219298}
+ - component: {fileID: 45360905756024039}
+ - component: {fileID: 1689601321579300571}
+ m_Layer: 5
+ m_Name: Background
+ m_TagString: Untagged
+ m_Icon: {fileID: 0}
+ m_NavMeshLayer: 0
+ m_StaticEditorFlags: 0
+ m_IsActive: 1
+--- !u!224 &997822693772618305
+RectTransform:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 7114562640169053628}
+ m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+ m_LocalPosition: {x: 0, y: 0, z: 0}
+ m_LocalScale: {x: 1, y: 1, z: 1}
+ m_ConstrainProportionsScale: 1
+ m_Children: []
+ m_Father: {fileID: 0}
+ m_RootOrder: -1
+ m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
+ m_AnchorMin: {x: 0, y: 0}
+ m_AnchorMax: {x: 1, y: 1}
+ m_AnchoredPosition: {x: 0, y: 0}
+ m_SizeDelta: {x: 0, y: 0}
+ m_Pivot: {x: 0.5, y: 0.5}
+--- !u!222 &2866147896293219298
+CanvasRenderer:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 7114562640169053628}
+ m_CullTransparentMesh: 1
+--- !u!114 &45360905756024039
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 7114562640169053628}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ m_Material: {fileID: 0}
+ m_Color: {r: 1, g: 1, b: 1, a: 1}
+ m_RaycastTarget: 1
+ m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
+ m_Maskable: 1
+ m_OnCullStateChanged:
+ m_PersistentCalls:
+ m_Calls: []
+ m_Sprite: {fileID: 0}
+ m_Type: 0
+ m_PreserveAspect: 0
+ m_FillCenter: 1
+ m_FillMethod: 4
+ m_FillAmount: 1
+ m_FillClockwise: 1
+ m_FillOrigin: 0
+ m_UseSpriteMesh: 0
+ m_PixelsPerUnitMultiplier: 1
+--- !u!114 &1689601321579300571
+MonoBehaviour:
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_GameObject: {fileID: 7114562640169053628}
+ m_Enabled: 1
+ m_EditorHideFlags: 0
+ m_Script: {fileID: 11500000, guid: a1f4d01e48c9499f80ebc24e695fa593, type: 3}
+ m_Name:
+ m_EditorClassIdentifier:
+ backgroundSprites: []
diff --git a/Assets/EasyADV/Prefabs/Background.prefab.meta b/Assets/EasyADV/Prefabs/Background.prefab.meta
new file mode 100644
index 0000000..5968501
--- /dev/null
+++ b/Assets/EasyADV/Prefabs/Background.prefab.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 753e25e07c0e24d4f95d3448c7d12f56
+PrefabImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/EasyADV/Scripts/DataModel/CharacterVoiceSetting.cs b/Assets/EasyADV/Scripts/DataModel/CharacterVoiceSetting.cs
deleted file mode 100644
index e7b5b64..0000000
--- a/Assets/EasyADV/Scripts/DataModel/CharacterVoiceSetting.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using KoeiromapUnity.Core;
-
-namespace EasyADV.DataModel
-{
- public static class CharacterVoiceSetting
- {
- ///
- /// sample
- ///
- ///
- ///
- public static VoiceParam Character1(string text)
- {
- return new VoiceParam
- {
- text = text,
- speaker_x = 0.50f,
- speaker_y = 0.20f,
- style = "talk",
- seed = "15"
- };
- }
- }
-}
\ No newline at end of file
diff --git a/Assets/EasyADV/Scripts/DataModel/CharacterVoiceSetting.cs.meta b/Assets/EasyADV/Scripts/DataModel/CharacterVoiceSetting.cs.meta
deleted file mode 100644
index 8af2b6f..0000000
--- a/Assets/EasyADV/Scripts/DataModel/CharacterVoiceSetting.cs.meta
+++ /dev/null
@@ -1,3 +0,0 @@
-fileFormatVersion: 2
-guid: 26045c5a567e477aae934c4981eeb8a8
-timeCreated: 1679417240
\ No newline at end of file
diff --git a/Assets/EasyADV/Scripts/DataModel/ScenarioData.cs b/Assets/EasyADV/Scripts/DataModel/ScenarioData.cs
index e5332d3..68f1652 100644
--- a/Assets/EasyADV/Scripts/DataModel/ScenarioData.cs
+++ b/Assets/EasyADV/Scripts/DataModel/ScenarioData.cs
@@ -3,6 +3,9 @@
namespace EasyADV.DataModel
{
+ ///
+ /// シナリオデータ
+ ///
[Serializable]
public class ScenarioData
{
@@ -11,10 +14,12 @@ public class ScenarioData
public string characterName;
public string command;
public string content;
- public string description;
public string sound;
}
+ ///
+ /// シナリオデータリスト
+ ///
[Serializable]
public class ScenarioDataList
{
diff --git a/Assets/EasyADV/Scripts/EasyADV.asmdef b/Assets/EasyADV/Scripts/EasyADV.asmdef
index 1ac7ce6..b336390 100644
--- a/Assets/EasyADV/Scripts/EasyADV.asmdef
+++ b/Assets/EasyADV/Scripts/EasyADV.asmdef
@@ -4,7 +4,6 @@
"references": [
"GUID:007db7f7a4c8f944990d71603a110f82",
"GUID:f51ebe6a0ceec4240a699833d6309b23",
- "GUID:cc04cd67926c76747844771fb8e474a5",
"GUID:34cf00d3f10a8f34783a2f8b914a0219"
],
"includePlatforms": [],
diff --git a/Assets/EasyADV/Scripts/Editor/EasyADVMenu.cs b/Assets/EasyADV/Scripts/Editor/EasyADVMenu.cs
new file mode 100644
index 0000000..8df1fbd
--- /dev/null
+++ b/Assets/EasyADV/Scripts/Editor/EasyADVMenu.cs
@@ -0,0 +1,125 @@
+using System.IO;
+using EasyADV.FungusExtension;
+using EasyADV.Scripts;
+using Fungus;
+using UnityEditor;
+using UnityEngine;
+
+namespace EasyADV.Editor
+{
+ ///
+ /// EasyADVのメニューを追加するクラス
+ ///
+ public class EasyADVMenu
+ {
+ ///
+ /// 背景画像のフォルダ名
+ ///
+ private const string BackgroundImageFolderName = "BackgroundImage";
+
+ ///
+ /// キャラクター画像のフォルダ名
+ ///
+ private const string CharacterImageFolderName = "CharacterImage";
+
+ ///
+ /// サウンドのフォルダ名
+ ///
+ private const string SoundFolderName = "Sound";
+
+ [MenuItem("Tools/EasyADV/Setup")]
+ private static void Setup()
+ {
+ SetupHierarchyObject();
+ SetupMaterialFolder();
+ }
+
+ ///
+ /// 素材フォルダを作成する
+ ///
+ private static void SetupMaterialFolder()
+ {
+ var folderRoot = Application.dataPath + "/EasyADV/";
+
+ // 背景画像フォルダがなければ作成
+ if (!Directory.Exists(folderRoot + BackgroundImageFolderName))
+ {
+ Directory.CreateDirectory(folderRoot + BackgroundImageFolderName);
+ CreateGitKeep(Path.Combine(folderRoot, BackgroundImageFolderName));
+ }
+
+ // キャラクター画像フォルダがなければ作成
+ if (!Directory.Exists(folderRoot + CharacterImageFolderName))
+ {
+ Directory.CreateDirectory(folderRoot + CharacterImageFolderName);
+ CreateGitKeep(Path.Combine(folderRoot, CharacterImageFolderName));
+ }
+
+ // サウンドフォルダがなければ作成
+ if (!Directory.Exists(folderRoot + SoundFolderName))
+ {
+ Directory.CreateDirectory(folderRoot + SoundFolderName);
+ CreateGitKeep(Path.Combine(folderRoot, SoundFolderName));
+ }
+
+ AssetDatabase.Refresh();
+ }
+
+ ///
+ /// Fungus・EasyADVを使用するためのオブジェクトを作成する
+ ///
+ private static void SetupHierarchyObject()
+ {
+ if (Object.FindObjectOfType() == null)
+ {
+ Fungus.EditorUtils.FlowchartMenuItems.CreateFlowchart();
+ }
+
+ if(Object.FindObjectOfType() == null)
+ {
+ Fungus.EditorUtils.NarrativeMenuItems.CreateStage();
+ }
+
+ if (Object.FindObjectOfType() == null)
+ {
+ Fungus.EditorUtils.NarrativeMenuItems.CreateSayDialog();
+ }
+
+ // FlowchartにUpdateScenarioFromGoogleSheetコンポーネントが追加されていなければ追加
+ var flowchart = Object.FindObjectOfType();
+ if (flowchart == null || flowchart.GetComponent() != null)
+ {
+ return;
+ }
+
+ flowchart.gameObject.AddComponent();
+
+ // ステージ内に背景画 切り替え用のオブジェクトとコンポーネントの追加
+ var stageCanvas = Object.FindObjectOfType().GetComponentInChildren