|
|
@ -12,68 +12,43 @@ namespace Fungus |
|
|
|
[MenuItem("GameObject/Fungus/Dialog/Character")] |
|
|
|
[MenuItem("GameObject/Fungus/Dialog/Character")] |
|
|
|
static void CreateCharacter() |
|
|
|
static void CreateCharacter() |
|
|
|
{ |
|
|
|
{ |
|
|
|
GameObject go = Resources.Load<GameObject>("FungusCharacter"); |
|
|
|
FungusScriptMenuItems.SpawnPrefab("Character"); |
|
|
|
if (go != null) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
GameObject spawnedGO = PrefabUtility.InstantiatePrefab(go) as GameObject; |
|
|
|
|
|
|
|
spawnedGO.name = "Character"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[MenuItem("GameObject/Fungus/Dialog/SayDialog")] |
|
|
|
[MenuItem("GameObject/Fungus/Dialog/SayDialog")] |
|
|
|
static void CreateSayDialog() |
|
|
|
static void CreateSayDialog() |
|
|
|
{ |
|
|
|
{ |
|
|
|
GameObject go = Resources.Load<GameObject>("FungusSayDialog"); |
|
|
|
FungusScriptMenuItems.SpawnPrefab("SayDialog"); |
|
|
|
if (go != null) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
GameObject spawnedGO = PrefabUtility.InstantiatePrefab(go) as GameObject; |
|
|
|
|
|
|
|
spawnedGO.name = "SayDialog"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[MenuItem("GameObject/Fungus/Dialog/MenuDialog")] |
|
|
|
[MenuItem("GameObject/Fungus/Dialog/MenuDialog")] |
|
|
|
static void CreateMenuDialog() |
|
|
|
static void CreateMenuDialog() |
|
|
|
{ |
|
|
|
{ |
|
|
|
GameObject go = Resources.Load<GameObject>("FungusMenuDialog"); |
|
|
|
FungusScriptMenuItems.SpawnPrefab("MenuDialog"); |
|
|
|
if (go != null) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
GameObject spawnedGO = PrefabUtility.InstantiatePrefab(go) as GameObject; |
|
|
|
|
|
|
|
spawnedGO.name = "MenuDialog"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[MenuItem("GameObject/Fungus/Dialog/Tag")] |
|
|
|
[MenuItem("GameObject/Fungus/Dialog/Tag")] |
|
|
|
static void CreateTag() |
|
|
|
static void CreateTag() |
|
|
|
{ |
|
|
|
{ |
|
|
|
GameObject go = Resources.Load<GameObject>("FungusTag"); |
|
|
|
FungusScriptMenuItems.SpawnPrefab("Tag"); |
|
|
|
if (go != null) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
GameObject spawnedGO = PrefabUtility.InstantiatePrefab(go) as GameObject; |
|
|
|
|
|
|
|
spawnedGO.name = "Tag"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[MenuItem("GameObject/Fungus/Dialog/AudioTag")] |
|
|
|
[MenuItem("GameObject/Fungus/Dialog/AudioTag")] |
|
|
|
static void CreateAudioTag() |
|
|
|
static void CreateAudioTag() |
|
|
|
{ |
|
|
|
{ |
|
|
|
GameObject go = Resources.Load<GameObject>("FungusAudioTag"); |
|
|
|
FungusScriptMenuItems.SpawnPrefab("AudioTag"); |
|
|
|
if (go != null) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
GameObject spawnedGO = PrefabUtility.InstantiatePrefab(go) as GameObject; |
|
|
|
|
|
|
|
spawnedGO.name = "AudioTag"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[MenuItem("GameObject/Fungus/Portrait/Stage")] |
|
|
|
[MenuItem("GameObject/Fungus/Portrait/Stage")] |
|
|
|
static void CreateStage() |
|
|
|
static void CreateStage() |
|
|
|
{ |
|
|
|
{ |
|
|
|
FungusScriptMenuItems.SpawnPrefab("Assets/Fungus/Portrait/Prefabs/Stage.prefab"); |
|
|
|
FungusScriptMenuItems.SpawnPrefab("Stage"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[MenuItem("GameObject/Fungus/Portrait/StagePosition")] |
|
|
|
[MenuItem("GameObject/Fungus/Portrait/StagePosition")] |
|
|
|
static void CreateStagePosition() |
|
|
|
static void CreateStagePosition() |
|
|
|
{ |
|
|
|
{ |
|
|
|
FungusScriptMenuItems.SpawnPrefab("Assets/Fungus/Portrait/Prefabs/StagePosition.prefab"); |
|
|
|
FungusScriptMenuItems.SpawnPrefab("StagePosition"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|