chrisgregan
10 years ago
29 changed files with 139 additions and 3349 deletions
@ -1,30 +0,0 @@
|
||||
using UnityEngine; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
|
||||
namespace Fungus |
||||
{ |
||||
// Note: The End If command is deprecated, use the End command instead. |
||||
[CommandInfo("Scripting", |
||||
"End", |
||||
"Marks the end of a conditional block.", -1)] |
||||
[AddComponentMenu("")] |
||||
public class EndIf : Command |
||||
{ |
||||
public override void OnEnter() |
||||
{ |
||||
Continue(); |
||||
} |
||||
|
||||
public override bool CloseBlock() |
||||
{ |
||||
return true; |
||||
} |
||||
|
||||
public override Color GetButtonColor() |
||||
{ |
||||
return new Color32(253, 253, 150, 255); |
||||
} |
||||
} |
||||
|
||||
} |
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 00d52e9e9dcf4493c87045f633aefa2e |
||||
MonoImporter: |
||||
serializedVersion: 2 |
||||
defaultReferences: [] |
||||
executionOrder: 0 |
||||
icon: {instanceID: 0} |
||||
userData: |
@ -1,5 +0,0 @@
|
||||
fileFormatVersion: 2 |
||||
guid: e28117fbc8861436296315b42526caac |
||||
folderAsset: yes |
||||
DefaultImporter: |
||||
userData: |
@ -1,85 +0,0 @@
|
||||
using UnityEngine; |
||||
using UnityEngine.Serialization; |
||||
using System; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
|
||||
namespace Fungus |
||||
{ |
||||
[CommandInfo("Deprecated", |
||||
"Add Option", |
||||
"Obsolete: This command will be removed in a future update. Please use the Option command instead.", |
||||
-1)] |
||||
[AddComponentMenu("")] |
||||
public class AddOption : SetVariable |
||||
{ |
||||
[Tooltip("Option text to display when presenting the option to the player")] |
||||
public string optionText; |
||||
|
||||
[FormerlySerializedAs("targetSequence")] |
||||
[Tooltip("Block to execute when the player selects this option")] |
||||
public Block targetBlock; |
||||
|
||||
[Tooltip("Hide this option once it has been selected so that it won't appear again even if executed again")] |
||||
public bool hideOnSelected; |
||||
|
||||
protected bool wasSelected; |
||||
|
||||
public override void OnEnter() |
||||
{ |
||||
if (hideOnSelected && wasSelected) |
||||
{ |
||||
Continue(); |
||||
return; |
||||
} |
||||
|
||||
Choose.Option option = new Choose.Option(); |
||||
option.optionText = optionText; // Note: Variable substitution happens in the Choose command (as late as possible) |
||||
option.targetBlock = targetBlock; |
||||
|
||||
option.action = () => { |
||||
wasSelected = true; |
||||
DoSetOperation(); // Set variable (if one is specified) |
||||
}; |
||||
|
||||
Choose.options.Add(option); |
||||
|
||||
Continue(); |
||||
} |
||||
|
||||
public override string GetSummary() |
||||
{ |
||||
string summaryText = optionText; |
||||
|
||||
if (targetBlock == null) |
||||
{ |
||||
summaryText += " ( <Continue> )"; |
||||
} |
||||
else |
||||
{ |
||||
summaryText += " (" + targetBlock.blockName + ")"; |
||||
} |
||||
|
||||
return summaryText; |
||||
} |
||||
|
||||
public override void GetConnectedBlocks(ref List<Block> connectedBlocks) |
||||
{ |
||||
if (targetBlock != null) |
||||
{ |
||||
connectedBlocks.Add(targetBlock); |
||||
} |
||||
} |
||||
|
||||
public override Color GetButtonColor() |
||||
{ |
||||
return new Color32(184, 210, 235, 255); |
||||
} |
||||
|
||||
public override void OnReset() |
||||
{ |
||||
wasSelected = false; |
||||
} |
||||
} |
||||
|
||||
} |
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 9a61ea20fbb744ca2a363c33ad65cd89 |
||||
MonoImporter: |
||||
serializedVersion: 2 |
||||
defaultReferences: [] |
||||
executionOrder: 0 |
||||
icon: {instanceID: 0} |
||||
userData: |
Before Width: | Height: | Size: 17 KiB |
@ -1,48 +0,0 @@
|
||||
fileFormatVersion: 2 |
||||
guid: b3426f0a4460547a69fc64b85700a13d |
||||
TextureImporter: |
||||
fileIDToRecycleName: |
||||
21300000: Arrow |
||||
serializedVersion: 2 |
||||
mipmaps: |
||||
mipMapMode: 0 |
||||
enableMipMap: 0 |
||||
linearTexture: 0 |
||||
correctGamma: 0 |
||||
fadeOut: 0 |
||||
borderMipMap: 0 |
||||
mipMapFadeDistanceStart: 1 |
||||
mipMapFadeDistanceEnd: 3 |
||||
bumpmap: |
||||
convertToNormalMap: 0 |
||||
externalNormalMap: 0 |
||||
heightScale: .25 |
||||
normalMapFilter: 0 |
||||
isReadable: 0 |
||||
grayScaleToAlpha: 0 |
||||
generateCubemap: 0 |
||||
seamlessCubemap: 0 |
||||
textureFormat: -3 |
||||
maxTextureSize: 1024 |
||||
textureSettings: |
||||
filterMode: -1 |
||||
aniso: 1 |
||||
mipBias: -1 |
||||
wrapMode: 1 |
||||
nPOTScale: 0 |
||||
lightmap: 0 |
||||
compressionQuality: 50 |
||||
spriteMode: 1 |
||||
spriteExtrude: 1 |
||||
spriteMeshType: 1 |
||||
alignment: 0 |
||||
spritePivot: {x: .5, y: .5} |
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0} |
||||
spritePixelsToUnits: 100 |
||||
alphaIsTransparency: 1 |
||||
textureType: 8 |
||||
buildTargetSettings: [] |
||||
spriteSheet: |
||||
sprites: [] |
||||
spritePackingTag: |
||||
userData: |
@ -1,202 +0,0 @@
|
||||
using UnityEngine; |
||||
using UnityEngine.Serialization; |
||||
using System; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
|
||||
namespace Fungus |
||||
{ |
||||
[CommandInfo("Deprecated", |
||||
"Choose", |
||||
"Obsolete: This command will be removed in a future update. Please use the Menu command instead.", |
||||
-1)] |
||||
[AddComponentMenu("")] |
||||
public class Choose : Command |
||||
{ |
||||
public class Option |
||||
{ |
||||
public string optionText; |
||||
[FormerlySerializedAs("targetSequence")] |
||||
public Block targetBlock; |
||||
public Action action; |
||||
} |
||||
|
||||
static public List<Option> options = new List<Option>(); |
||||
|
||||
[Tooltip("Story text to display to prompt player to choose an option")] |
||||
[TextArea(5,10)] |
||||
public string chooseText; |
||||
|
||||
[Tooltip("Speaking character to use when prompting the player to choose an option")] |
||||
public Character character; |
||||
|
||||
[Tooltip("Choose Dialog object to use to display the player options")] |
||||
public ChooseDialog chooseDialog; |
||||
|
||||
[Tooltip("Portrait that represents speaking character")] |
||||
public Sprite portrait; |
||||
|
||||
[Tooltip("Voiceover audio to play when prompting the player to choose an option")] |
||||
public AudioClip voiceOverClip; |
||||
|
||||
[Tooltip("Time limit for player to choose an option. Set to 0 for no time limit.")] |
||||
public float timeoutDuration; |
||||
|
||||
protected bool showBasicGUI; |
||||
|
||||
public override void OnEnter() |
||||
{ |
||||
showBasicGUI = false; |
||||
if (chooseDialog == null) |
||||
{ |
||||
if (chooseDialog == null) |
||||
{ |
||||
// Try to get any ChooseDialog in the scene |
||||
chooseDialog = GameObject.FindObjectOfType<ChooseDialog>(); |
||||
} |
||||
|
||||
if (chooseDialog == null) |
||||
{ |
||||
showBasicGUI = true; |
||||
return; |
||||
} |
||||
} |
||||
|
||||
if (options.Count == 0) |
||||
{ |
||||
Continue(); |
||||
} |
||||
else |
||||
{ |
||||
Flowchart flowchart = GetFlowchart(); |
||||
|
||||
chooseDialog.ShowDialog(true); |
||||
chooseDialog.SetCharacter(character, flowchart); |
||||
chooseDialog.SetCharacterImage(portrait); |
||||
|
||||
List<ChooseDialog.Option> dialogOptions = new List<ChooseDialog.Option>(); |
||||
foreach (Option option in options) |
||||
{ |
||||
ChooseDialog.Option dialogOption = new ChooseDialog.Option(); |
||||
|
||||
// Store these in local variables so they get closed over correctly by the delegate call |
||||
dialogOption.text = option.optionText; |
||||
dialogOption.text = flowchart.SubstituteVariables(dialogOption.text); |
||||
Block onSelectBlock = option.targetBlock; |
||||
Action optionAction = option.action; |
||||
|
||||
dialogOption.onSelect = delegate { |
||||
|
||||
if (optionAction != null) |
||||
{ |
||||
optionAction(); |
||||
} |
||||
|
||||
chooseDialog.ShowDialog(false); |
||||
|
||||
if (onSelectBlock == null) |
||||
{ |
||||
Continue (); |
||||
} |
||||
else |
||||
{ |
||||
Stop(); |
||||
onSelectBlock.Execute(); |
||||
} |
||||
}; |
||||
|
||||
dialogOptions.Add(dialogOption); |
||||
} |
||||
|
||||
options.Clear(); |
||||
|
||||
if (voiceOverClip != null) |
||||
{ |
||||
chooseDialog.PlayVoiceOver(voiceOverClip); |
||||
} |
||||
|
||||
string subbedText = flowchart.SubstituteVariables(chooseText); |
||||
|
||||
chooseDialog.Choose(subbedText, dialogOptions, timeoutDuration, delegate { |
||||
chooseDialog.ShowDialog(false); |
||||
Continue(); |
||||
}); |
||||
} |
||||
} |
||||
|
||||
public override string GetSummary() |
||||
{ |
||||
return "\"" + chooseText + "\""; |
||||
} |
||||
|
||||
public override void GetConnectedBlocks (ref List<Block> connectedBlocks) |
||||
{ |
||||
// Show connected blocks from preceding AddOption commands |
||||
if (isExecuting) |
||||
{ |
||||
foreach (Option option in options) |
||||
{ |
||||
if (option.targetBlock != null) |
||||
{ |
||||
connectedBlocks.Add(option.targetBlock); |
||||
} |
||||
} |
||||
} |
||||
} |
||||
|
||||
protected virtual void OnGUI() |
||||
{ |
||||
if (!showBasicGUI) |
||||
{ |
||||
return; |
||||
} |
||||
|
||||
// Draw a basic GUI to use when no uGUI dialog has been set |
||||
// Does not support drawing character images |
||||
|
||||
GUILayout.BeginHorizontal(GUILayout.Width(Screen.width)); |
||||
GUILayout.FlexibleSpace(); |
||||
|
||||
GUILayout.BeginVertical(GUILayout.Height(Screen.height)); |
||||
GUILayout.FlexibleSpace(); |
||||
|
||||
GUILayout.BeginVertical(new GUIStyle(GUI.skin.box)); |
||||
|
||||
if (character != null) |
||||
{ |
||||
GUILayout.Label(character.nameText); |
||||
GUILayout.Space(10); |
||||
} |
||||
|
||||
GUILayout.Label(chooseText); |
||||
|
||||
foreach (Option option in options) |
||||
{ |
||||
if (GUILayout.Button(option.optionText)) |
||||
{ |
||||
options.Clear(); |
||||
showBasicGUI = false; |
||||
Stop(); |
||||
if (option.targetBlock != null) |
||||
{ |
||||
option.targetBlock.Execute(); |
||||
} |
||||
} |
||||
} |
||||
|
||||
GUILayout.EndVertical(); |
||||
|
||||
GUILayout.FlexibleSpace(); |
||||
GUILayout.EndVertical(); |
||||
|
||||
GUILayout.FlexibleSpace(); |
||||
GUILayout.EndHorizontal(); |
||||
} |
||||
|
||||
public override Color GetButtonColor() |
||||
{ |
||||
return new Color32(184, 210, 235, 255); |
||||
} |
||||
} |
||||
|
||||
} |
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2 |
||||
guid: d1dc785fd3508440db335f3b5654c96c |
||||
MonoImporter: |
||||
serializedVersion: 2 |
||||
defaultReferences: [] |
||||
executionOrder: 0 |
||||
icon: {instanceID: 0} |
||||
userData: |
@ -1,157 +0,0 @@
|
||||
using UnityEngine; |
||||
using UnityEngine.UI; |
||||
using UnityEngine.Events; |
||||
using System; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
|
||||
namespace Fungus |
||||
{ |
||||
|
||||
[ExecuteInEditMode] |
||||
public class ChooseDialog : Dialog |
||||
{ |
||||
public Slider timeoutSlider; |
||||
|
||||
public class Option |
||||
{ |
||||
public string text; |
||||
public UnityAction onSelect; |
||||
} |
||||
|
||||
public List<UnityEngine.UI.Button> optionButtons = new List<UnityEngine.UI.Button>(); |
||||
|
||||
static public List<ChooseDialog> activeDialogs = new List<ChooseDialog>(); |
||||
|
||||
protected virtual void OnEnable() |
||||
{ |
||||
if (!activeDialogs.Contains(this)) |
||||
{ |
||||
activeDialogs.Add(this); |
||||
} |
||||
} |
||||
|
||||
protected virtual void OnDisable() |
||||
{ |
||||
activeDialogs.Remove(this); |
||||
} |
||||
|
||||
public override void ShowDialog (bool visible) |
||||
{ |
||||
base.ShowDialog (visible); |
||||
timeoutSlider.gameObject.SetActive(false); |
||||
} |
||||
|
||||
public virtual void Choose(string text, List<Option> options, float timeoutDuration, Action onTimeout) |
||||
{ |
||||
Clear(); |
||||
|
||||
Action onWritingComplete = delegate { |
||||
foreach (Option option in options) |
||||
{ |
||||
AddOption(option.text, option.onSelect); |
||||
} |
||||
|
||||
if (timeoutDuration > 0) |
||||
{ |
||||
timeoutSlider.gameObject.SetActive(true); |
||||
StartCoroutine(WaitForTimeout(timeoutDuration, onTimeout)); |
||||
} |
||||
}; |
||||
|
||||
StartCoroutine(WriteText(text, onWritingComplete, onTimeout)); |
||||
} |
||||
|
||||
protected virtual IEnumerator WaitForTimeout(float timeoutDuration, Action onTimeout) |
||||
{ |
||||
float elapsedTime = 0; |
||||
|
||||
while (elapsedTime < timeoutDuration) |
||||
{ |
||||
if (timeoutSlider != null) |
||||
{ |
||||
float t = elapsedTime / timeoutDuration; |
||||
timeoutSlider.value = t; |
||||
} |
||||
|
||||
elapsedTime += Time.deltaTime; |
||||
|
||||
yield return null; |
||||
} |
||||
|
||||
Clear(); |
||||
|
||||
if (onTimeout != null) |
||||
{ |
||||
onTimeout(); |
||||
} |
||||
} |
||||
|
||||
public override void Clear() |
||||
{ |
||||
base.Clear(); |
||||
ClearOptions(); |
||||
} |
||||
|
||||
protected virtual void ClearOptions() |
||||
{ |
||||
if (optionButtons == null) |
||||
{ |
||||
return; |
||||
} |
||||
|
||||
foreach (UnityEngine.UI.Button button in optionButtons) |
||||
{ |
||||
button.onClick.RemoveAllListeners(); |
||||
} |
||||
|
||||
foreach (UnityEngine.UI.Button button in optionButtons) |
||||
{ |
||||
if (button != null) |
||||
{ |
||||
button.gameObject.SetActive(false); |
||||
} |
||||
} |
||||
} |
||||
|
||||
protected virtual bool AddOption(string text, UnityAction action) |
||||
{ |
||||
if (optionButtons == null) |
||||
{ |
||||
return false; |
||||
} |
||||
|
||||
bool addedOption = false; |
||||
foreach (UnityEngine.UI.Button button in optionButtons) |
||||
{ |
||||
if (!button.gameObject.activeSelf) |
||||
{ |
||||
button.gameObject.SetActive(true); |
||||
|
||||
Text textComponent = button.GetComponentInChildren<Text>(); |
||||
if (textComponent != null) |
||||
{ |
||||
textComponent.text = text; |
||||
} |
||||
|
||||
UnityAction buttonAction = action; |
||||
|
||||
button.onClick.AddListener(delegate { |
||||
StopAllCoroutines(); // Stop timeout |
||||
Clear(); |
||||
if (buttonAction != null) |
||||
{ |
||||
buttonAction(); |
||||
} |
||||
}); |
||||
|
||||
addedOption = true; |
||||
break; |
||||
} |
||||
} |
||||
|
||||
return addedOption; |
||||
} |
||||
} |
||||
|
||||
} |
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2 |
||||
guid: f7a657dd101e84d9da0a5ee5f934317d |
||||
MonoImporter: |
||||
serializedVersion: 2 |
||||
defaultReferences: [] |
||||
executionOrder: 0 |
||||
icon: {instanceID: 0} |
||||
userData: |
File diff suppressed because it is too large
Load Diff
@ -1,4 +0,0 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 6b7fc59bc2eb0416e91931c4248923ae |
||||
NativeFormatImporter: |
||||
userData: |
@ -1,5 +0,0 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 3565c35600a5b46c0b29c75e85a3e760 |
||||
folderAsset: yes |
||||
DefaultImporter: |
||||
userData: |
@ -1,49 +0,0 @@
|
||||
using UnityEditor; |
||||
using UnityEditorInternal; |
||||
using UnityEngine; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using Rotorz.ReorderableList; |
||||
|
||||
namespace Fungus |
||||
{ |
||||
|
||||
[CustomEditor (typeof(AddOption))] |
||||
public class AddOptionEditor : SetVariableEditor |
||||
{ |
||||
protected SerializedProperty optionTextProp; |
||||
protected SerializedProperty hideOnSelectedProp; |
||||
protected SerializedProperty targetBlockProp; |
||||
|
||||
protected override void OnEnable() |
||||
{ |
||||
base.OnEnable(); |
||||
optionTextProp = serializedObject.FindProperty("optionText"); |
||||
hideOnSelectedProp = serializedObject.FindProperty("hideOnSelected"); |
||||
targetBlockProp = serializedObject.FindProperty("targetBlock"); |
||||
} |
||||
|
||||
public override void DrawCommandGUI() |
||||
{ |
||||
serializedObject.Update(); |
||||
|
||||
AddOption t = target as AddOption; |
||||
|
||||
EditorGUILayout.PropertyField(optionTextProp, new GUIContent("Option Text", "Text to display on the option button.")); |
||||
|
||||
BlockEditor.BlockField(targetBlockProp, |
||||
new GUIContent("Target Block", "Block to execute when this option is selected by the player."), |
||||
new GUIContent("<Continue>"), |
||||
t.GetFlowchart()); |
||||
|
||||
serializedObject.ApplyModifiedProperties(); |
||||
|
||||
base.DrawCommandGUI(); |
||||
|
||||
serializedObject.Update(); |
||||
EditorGUILayout.PropertyField(hideOnSelectedProp, new GUIContent("Hide On Selected", "Hide this option forever once the player has selected it.")); |
||||
serializedObject.ApplyModifiedProperties(); |
||||
} |
||||
} |
||||
|
||||
} |
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 40a93fe42338b42e7a0215379d219400 |
||||
MonoImporter: |
||||
serializedVersion: 2 |
||||
defaultReferences: [] |
||||
executionOrder: 0 |
||||
icon: {instanceID: 0} |
||||
userData: |
@ -1,110 +0,0 @@
|
||||
using UnityEditor; |
||||
using UnityEditorInternal; |
||||
using UnityEngine; |
||||
using System.Collections; |
||||
using System.Collections.Generic; |
||||
using Rotorz.ReorderableList; |
||||
|
||||
namespace Fungus |
||||
{ |
||||
|
||||
[CustomEditor (typeof(Choose))] |
||||
public class ChooseEditor : CommandEditor |
||||
{ |
||||
static public bool showTagHelp; |
||||
|
||||
protected SerializedProperty chooseTextProp; |
||||
protected SerializedProperty characterProp; |
||||
protected SerializedProperty chooseDialogProp; |
||||
protected SerializedProperty portraitProp; |
||||
protected SerializedProperty voiceOverClipProp; |
||||
protected SerializedProperty timeoutDurationProp; |
||||
|
||||
protected virtual void OnEnable() |
||||
{ |
||||
chooseTextProp = serializedObject.FindProperty("chooseText"); |
||||
characterProp = serializedObject.FindProperty("character"); |
||||
portraitProp = serializedObject.FindProperty("portrait"); |
||||
chooseDialogProp = serializedObject.FindProperty("chooseDialog"); |
||||
voiceOverClipProp = serializedObject.FindProperty("voiceOverClip"); |
||||
timeoutDurationProp = serializedObject.FindProperty("timeoutDuration"); |
||||
} |
||||
|
||||
public override void DrawCommandGUI() |
||||
{ |
||||
serializedObject.Update(); |
||||
|
||||
Choose t = target as Choose; |
||||
|
||||
CommandEditor.ObjectField<Character>(characterProp, |
||||
new GUIContent("Character", "Character to display in dialog"), |
||||
new GUIContent("<None>"), |
||||
Character.activeCharacters); |
||||
|
||||
CommandEditor.ObjectField<ChooseDialog>(chooseDialogProp, |
||||
new GUIContent("Choose Dialog", "Choose Dialog object to use to display the multiple player choices"), |
||||
new GUIContent("<Default>"), |
||||
ChooseDialog.activeDialogs); |
||||
|
||||
bool showPortraits = false; |
||||
// Only show portrait selection if... |
||||
if (t.character != null && // Character is selected |
||||
t.character.portraits != null && // Character has a portraits field |
||||
t.character.portraits.Count > 0 ) // Selected Character has at least 1 portrait |
||||
{ |
||||
showPortraits = true; |
||||
} |
||||
|
||||
if (showPortraits) |
||||
{ |
||||
CommandEditor.ObjectField<Sprite>(portraitProp, |
||||
new GUIContent("Portrait", "Portrait representing speaking character"), |
||||
new GUIContent("<None>"), |
||||
t.character.portraits); |
||||
} |
||||
else |
||||
{ |
||||
t.portrait = null; |
||||
} |
||||
|
||||
EditorGUILayout.PropertyField(chooseTextProp); |
||||
|
||||
EditorGUILayout.BeginHorizontal(); |
||||
|
||||
GUILayout.FlexibleSpace(); |
||||
if (GUILayout.Button(new GUIContent("Tag Help", "Show help info for tags"), new GUIStyle(EditorStyles.miniButton))) |
||||
{ |
||||
showTagHelp = !showTagHelp; |
||||
} |
||||
EditorGUILayout.EndHorizontal(); |
||||
|
||||
if (showTagHelp) |
||||
{ |
||||
SayEditor.DrawTagHelpLabel(); |
||||
} |
||||
|
||||
EditorGUILayout.Separator(); |
||||
|
||||
EditorGUILayout.PropertyField(voiceOverClipProp, new GUIContent("Voice Over Clip", "Voice over audio to play when the choose text is displayed")); |
||||
|
||||
EditorGUILayout.PropertyField(timeoutDurationProp, new GUIContent("Timeout Duration", "Time limit for player to make a choice. Set to 0 for no limit.")); |
||||
|
||||
/* |
||||
if (showPortraits && t.portrait != null) |
||||
{ |
||||
Texture2D characterTexture = t.portrait.texture; |
||||
|
||||
float aspect = (float)characterTexture.width / (float)characterTexture.height; |
||||
|
||||
Rect previewRect = GUILayoutUtility.GetAspectRect(aspect, GUILayout.Width(100), GUILayout.ExpandWidth(true)); |
||||
CharacterEditor characterEditor = Editor.CreateEditor(t.character) as CharacterEditor; |
||||
characterEditor.DrawPreview(previewRect, characterTexture); |
||||
DestroyImmediate(characterEditor); |
||||
} |
||||
*/ |
||||
|
||||
serializedObject.ApplyModifiedProperties(); |
||||
} |
||||
} |
||||
|
||||
} |
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 9596f36d69e664a97936a2f6409eb495 |
||||
MonoImporter: |
||||
serializedVersion: 2 |
||||
defaultReferences: [] |
||||
executionOrder: 0 |
||||
icon: {instanceID: 0} |
||||
userData: |
@ -1,403 +0,0 @@
|
||||
%YAML 1.1 |
||||
%TAG !u! tag:unity3d.com,2011: |
||||
--- !u!1 &100000 |
||||
GameObject: |
||||
m_ObjectHideFlags: 0 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
serializedVersion: 4 |
||||
m_Component: |
||||
- 224: {fileID: 22400000} |
||||
- 223: {fileID: 22300000} |
||||
- 114: {fileID: 11400002} |
||||
- 114: {fileID: 11400000} |
||||
m_Layer: 5 |
||||
m_Name: Canvas |
||||
m_TagString: Untagged |
||||
m_Icon: {fileID: 0} |
||||
m_NavMeshLayer: 0 |
||||
m_StaticEditorFlags: 0 |
||||
m_IsActive: 0 |
||||
--- !u!1 &100002 |
||||
GameObject: |
||||
m_ObjectHideFlags: 0 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
serializedVersion: 4 |
||||
m_Component: |
||||
- 4: {fileID: 400000} |
||||
- 114: {fileID: 11400004} |
||||
m_Layer: 0 |
||||
m_Name: NarratorDialog |
||||
m_TagString: Untagged |
||||
m_Icon: {fileID: 0} |
||||
m_NavMeshLayer: 0 |
||||
m_StaticEditorFlags: 0 |
||||
m_IsActive: 1 |
||||
--- !u!1 &100004 |
||||
GameObject: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
serializedVersion: 4 |
||||
m_Component: |
||||
- 224: {fileID: 22400002} |
||||
- 222: {fileID: 22200000} |
||||
- 114: {fileID: 11400006} |
||||
- 225: {fileID: 22500000} |
||||
- 114: {fileID: 11400014} |
||||
m_Layer: 5 |
||||
m_Name: Panel |
||||
m_TagString: Untagged |
||||
m_Icon: {fileID: 0} |
||||
m_NavMeshLayer: 0 |
||||
m_StaticEditorFlags: 0 |
||||
m_IsActive: 1 |
||||
--- !u!1 &100006 |
||||
GameObject: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
serializedVersion: 4 |
||||
m_Component: |
||||
- 224: {fileID: 22400004} |
||||
- 222: {fileID: 22200002} |
||||
- 114: {fileID: 11400008} |
||||
- 114: {fileID: 11400010} |
||||
m_Layer: 5 |
||||
m_Name: StoryText |
||||
m_TagString: Untagged |
||||
m_Icon: {fileID: 0} |
||||
m_NavMeshLayer: 0 |
||||
m_StaticEditorFlags: 0 |
||||
m_IsActive: 1 |
||||
--- !u!1 &100008 |
||||
GameObject: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
serializedVersion: 4 |
||||
m_Component: |
||||
- 224: {fileID: 22400006} |
||||
- 222: {fileID: 22200004} |
||||
- 114: {fileID: 11400012} |
||||
m_Layer: 5 |
||||
m_Name: Continue |
||||
m_TagString: Untagged |
||||
m_Icon: {fileID: 0} |
||||
m_NavMeshLayer: 0 |
||||
m_StaticEditorFlags: 0 |
||||
m_IsActive: 1 |
||||
--- !u!4 &400000 |
||||
Transform: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100002} |
||||
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_Children: |
||||
- {fileID: 22400000} |
||||
m_Father: {fileID: 0} |
||||
m_RootOrder: 0 |
||||
--- !u!114 &11400000 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100000} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: 1980459831, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
m_UiScaleMode: 1 |
||||
m_ReferencePixelsPerUnit: 100 |
||||
m_ScaleFactor: 1 |
||||
m_ReferenceResolution: {x: 1024, y: 768} |
||||
m_ScreenMatchMode: 0 |
||||
m_MatchWidthOrHeight: 0 |
||||
m_PhysicalUnit: 3 |
||||
m_FallbackScreenDPI: 96 |
||||
m_DefaultSpriteDPI: 96 |
||||
m_DynamicPixelsPerUnit: 1 |
||||
--- !u!114 &11400002 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100000} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: 1301386320, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
ignoreReversedGraphics: 1 |
||||
blockingObjects: 0 |
||||
m_BlockingMask: |
||||
serializedVersion: 2 |
||||
m_Bits: 4294967295 |
||||
--- !u!114 &11400004 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100002} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: 11500000, guid: 3a0bbe22c246e4c78ad8e9816cbae9d5, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
writingSpeed: 60 |
||||
writingSound: {fileID: 8300000, guid: 5a3c8e205638142dcb8227abe5f14f1f, type: 3} |
||||
loopWritingSound: 1 |
||||
punctuationPause: .400000006 |
||||
clickAnywhere: 1 |
||||
dialogCanvas: {fileID: 22300000} |
||||
nameText: {fileID: 0} |
||||
storyText: {fileID: 11400008} |
||||
characterImage: {fileID: 0} |
||||
characterTypingSound: {fileID: 0} |
||||
continueImage: {fileID: 11400012} |
||||
--- !u!114 &11400006 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100004} |
||||
m_Enabled: 0 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
m_Material: {fileID: 0} |
||||
m_Color: {r: 1, g: 1, b: 1, a: .39199999} |
||||
m_Sprite: {fileID: 10909, guid: 0000000000000000f000000000000000, type: 0} |
||||
m_Type: 1 |
||||
m_PreserveAspect: 0 |
||||
m_FillCenter: 1 |
||||
m_FillMethod: 0 |
||||
m_FillAmount: 1 |
||||
m_FillClockwise: 1 |
||||
m_FillOrigin: 0 |
||||
--- !u!114 &11400008 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100006} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
m_Material: {fileID: 0} |
||||
m_Color: {r: 1, g: 1, b: 1, a: 1} |
||||
m_FontData: |
||||
m_Font: {fileID: 12800000, guid: bb145366ce7024469a5758b08d31802c, type: 3} |
||||
m_FontSize: 28 |
||||
m_FontStyle: 0 |
||||
m_BestFit: 0 |
||||
m_MinSize: 10 |
||||
m_MaxSize: 40 |
||||
m_Alignment: 3 |
||||
m_RichText: 1 |
||||
m_HorizontalOverflow: 0 |
||||
m_VerticalOverflow: 0 |
||||
m_LineSpacing: 1 |
||||
m_Text: Story text |
||||
--- !u!114 &11400010 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100006} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: -900027084, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
m_EffectColor: {r: 0, g: 0, b: 0, a: 1} |
||||
m_EffectDistance: {x: 1, y: -1} |
||||
m_UseGraphicAlpha: 1 |
||||
--- !u!114 &11400012 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100008} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
m_Material: {fileID: 0} |
||||
m_Color: {r: 1, g: 1, b: 1, a: 1} |
||||
m_Sprite: {fileID: 21300000, guid: b3426f0a4460547a69fc64b85700a13d, type: 3} |
||||
m_Type: 0 |
||||
m_PreserveAspect: 1 |
||||
m_FillCenter: 1 |
||||
m_FillMethod: 4 |
||||
m_FillAmount: 1 |
||||
m_FillClockwise: 1 |
||||
m_FillOrigin: 0 |
||||
--- !u!114 &11400014 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100004} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: -1862395651, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
delegates: |
||||
- eventID: 4 |
||||
callback: |
||||
m_PersistentCalls: |
||||
m_Calls: |
||||
- m_Target: {fileID: 11400004} |
||||
m_MethodName: OnPointerClick |
||||
m_Mode: 1 |
||||
m_Arguments: |
||||
m_ObjectArgument: {fileID: 0} |
||||
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine, Version=0.0.0.0, |
||||
Culture=neutral, PublicKeyToken=null |
||||
m_IntArgument: 0 |
||||
m_FloatArgument: 0 |
||||
m_StringArgument: |
||||
m_BoolArgument: 0 |
||||
m_CallState: 1 |
||||
m_TypeName: UnityEngine.EventSystems.EventTrigger+TriggerEvent, UnityEngine.UI, |
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null |
||||
--- !u!222 &22200000 |
||||
CanvasRenderer: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100004} |
||||
--- !u!222 &22200002 |
||||
CanvasRenderer: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100006} |
||||
--- !u!222 &22200004 |
||||
CanvasRenderer: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100008} |
||||
--- !u!223 &22300000 |
||||
Canvas: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100000} |
||||
m_Enabled: 1 |
||||
serializedVersion: 2 |
||||
m_RenderMode: 0 |
||||
m_Camera: {fileID: 0} |
||||
m_PlaneDistance: 100 |
||||
m_PixelPerfect: 0 |
||||
m_ReceivesEvents: 1 |
||||
m_OverrideSorting: 0 |
||||
m_OverridePixelPerfect: 0 |
||||
m_SortingLayerID: 0 |
||||
m_SortingOrder: 0 |
||||
--- !u!224 &22400000 |
||||
RectTransform: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100000} |
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
||||
m_LocalPosition: {x: 0, y: 0, z: 0} |
||||
m_LocalScale: {x: 0, y: 0, z: 0} |
||||
m_Children: |
||||
- {fileID: 22400002} |
||||
m_Father: {fileID: 400000} |
||||
m_RootOrder: 0 |
||||
m_AnchorMin: {x: 0, y: 0} |
||||
m_AnchorMax: {x: 0, y: 0} |
||||
m_AnchoredPosition: {x: 0, y: 0} |
||||
m_SizeDelta: {x: 0, y: 0} |
||||
m_Pivot: {x: 0, y: 0} |
||||
--- !u!224 &22400002 |
||||
RectTransform: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100004} |
||||
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_Children: |
||||
- {fileID: 22400006} |
||||
- {fileID: 22400004} |
||||
m_Father: {fileID: 22400000} |
||||
m_RootOrder: 0 |
||||
m_AnchorMin: {x: 0, y: 0} |
||||
m_AnchorMax: {x: 1, y: 0} |
||||
m_AnchoredPosition: {x: -0, y: 113.5} |
||||
m_SizeDelta: {x: -201.399994, y: 181.100006} |
||||
m_Pivot: {x: .5, y: .5} |
||||
--- !u!224 &22400004 |
||||
RectTransform: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100006} |
||||
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_Children: [] |
||||
m_Father: {fileID: 22400002} |
||||
m_RootOrder: 1 |
||||
m_AnchorMin: {x: 0, y: .200573966} |
||||
m_AnchorMax: {x: .974001944, y: .793890119} |
||||
m_AnchoredPosition: {x: 0, y: -2.50340008e-06} |
||||
m_SizeDelta: {x: -0, y: 7.62939999e-06} |
||||
m_Pivot: {x: .5, y: .5} |
||||
--- !u!224 &22400006 |
||||
RectTransform: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100008} |
||||
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_Children: [] |
||||
m_Father: {fileID: 22400002} |
||||
m_RootOrder: 0 |
||||
m_AnchorMin: {x: .485669017, y: .0163103454} |
||||
m_AnchorMax: {x: .528331041, y: .0163103454} |
||||
m_AnchoredPosition: {x: -2.43186951e-05, y: 15.8000002} |
||||
m_SizeDelta: {x: -.300000191, y: 32.0999985} |
||||
m_Pivot: {x: .5, y: .5} |
||||
--- !u!225 &22500000 |
||||
CanvasGroup: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100004} |
||||
m_Enabled: 1 |
||||
m_Alpha: 1 |
||||
m_Interactable: 1 |
||||
m_BlocksRaycasts: 1 |
||||
m_IgnoreParentGroups: 0 |
||||
--- !u!1001 &100100000 |
||||
Prefab: |
||||
m_ObjectHideFlags: 1 |
||||
serializedVersion: 2 |
||||
m_Modification: |
||||
m_TransformParent: {fileID: 0} |
||||
m_Modifications: [] |
||||
m_RemovedComponents: [] |
||||
m_ParentPrefab: {fileID: 0} |
||||
m_RootGameObject: {fileID: 100002} |
||||
m_IsPrefabParent: 1 |
||||
m_IsExploded: 1 |
@ -1,4 +0,0 @@
|
||||
fileFormatVersion: 2 |
||||
guid: ffe6272c05a0840d1b4b07028163f170 |
||||
NativeFormatImporter: |
||||
userData: |
@ -1,547 +0,0 @@
|
||||
%YAML 1.1 |
||||
%TAG !u! tag:unity3d.com,2011: |
||||
--- !u!1 &100000 |
||||
GameObject: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
serializedVersion: 4 |
||||
m_Component: |
||||
- 224: {fileID: 22400000} |
||||
- 222: {fileID: 22200000} |
||||
- 114: {fileID: 11400000} |
||||
m_Layer: 5 |
||||
m_Name: Continue |
||||
m_TagString: Untagged |
||||
m_Icon: {fileID: 0} |
||||
m_NavMeshLayer: 0 |
||||
m_StaticEditorFlags: 0 |
||||
m_IsActive: 1 |
||||
--- !u!1 &100002 |
||||
GameObject: |
||||
m_ObjectHideFlags: 0 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
serializedVersion: 4 |
||||
m_Component: |
||||
- 224: {fileID: 22400002} |
||||
- 223: {fileID: 22300000} |
||||
- 114: {fileID: 11400002} |
||||
- 114: {fileID: 11400004} |
||||
m_Layer: 5 |
||||
m_Name: Canvas |
||||
m_TagString: Untagged |
||||
m_Icon: {fileID: 0} |
||||
m_NavMeshLayer: 0 |
||||
m_StaticEditorFlags: 0 |
||||
m_IsActive: 0 |
||||
--- !u!1 &100004 |
||||
GameObject: |
||||
m_ObjectHideFlags: 0 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
serializedVersion: 4 |
||||
m_Component: |
||||
- 4: {fileID: 400000} |
||||
- 114: {fileID: 11400006} |
||||
m_Layer: 0 |
||||
m_Name: SayDialog |
||||
m_TagString: Untagged |
||||
m_Icon: {fileID: 0} |
||||
m_NavMeshLayer: 0 |
||||
m_StaticEditorFlags: 0 |
||||
m_IsActive: 1 |
||||
--- !u!1 &100006 |
||||
GameObject: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
serializedVersion: 4 |
||||
m_Component: |
||||
- 224: {fileID: 22400004} |
||||
- 222: {fileID: 22200002} |
||||
- 114: {fileID: 11400008} |
||||
- 225: {fileID: 22500000} |
||||
- 114: {fileID: 11400020} |
||||
m_Layer: 5 |
||||
m_Name: Panel |
||||
m_TagString: Untagged |
||||
m_Icon: {fileID: 0} |
||||
m_NavMeshLayer: 0 |
||||
m_StaticEditorFlags: 0 |
||||
m_IsActive: 1 |
||||
--- !u!1 &100008 |
||||
GameObject: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
serializedVersion: 4 |
||||
m_Component: |
||||
- 224: {fileID: 22400006} |
||||
- 222: {fileID: 22200004} |
||||
- 114: {fileID: 11400012} |
||||
- 114: {fileID: 11400010} |
||||
m_Layer: 5 |
||||
m_Name: NameText |
||||
m_TagString: Untagged |
||||
m_Icon: {fileID: 0} |
||||
m_NavMeshLayer: 0 |
||||
m_StaticEditorFlags: 0 |
||||
m_IsActive: 1 |
||||
--- !u!1 &100010 |
||||
GameObject: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
serializedVersion: 4 |
||||
m_Component: |
||||
- 224: {fileID: 22400008} |
||||
- 222: {fileID: 22200006} |
||||
- 114: {fileID: 11400014} |
||||
- 114: {fileID: 11400016} |
||||
m_Layer: 5 |
||||
m_Name: StoryText |
||||
m_TagString: Untagged |
||||
m_Icon: {fileID: 0} |
||||
m_NavMeshLayer: 0 |
||||
m_StaticEditorFlags: 0 |
||||
m_IsActive: 1 |
||||
--- !u!1 &100012 |
||||
GameObject: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
serializedVersion: 4 |
||||
m_Component: |
||||
- 224: {fileID: 22400010} |
||||
- 222: {fileID: 22200008} |
||||
- 114: {fileID: 11400018} |
||||
m_Layer: 5 |
||||
m_Name: CharacterImage |
||||
m_TagString: Untagged |
||||
m_Icon: {fileID: 0} |
||||
m_NavMeshLayer: 0 |
||||
m_StaticEditorFlags: 0 |
||||
m_IsActive: 1 |
||||
--- !u!4 &400000 |
||||
Transform: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100004} |
||||
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_Children: |
||||
- {fileID: 22400002} |
||||
m_Father: {fileID: 0} |
||||
m_RootOrder: 0 |
||||
--- !u!114 &11400000 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100000} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
m_Material: {fileID: 0} |
||||
m_Color: {r: 1, g: 1, b: 1, a: 1} |
||||
m_Sprite: {fileID: 21300000, guid: b3426f0a4460547a69fc64b85700a13d, type: 3} |
||||
m_Type: 0 |
||||
m_PreserveAspect: 1 |
||||
m_FillCenter: 1 |
||||
m_FillMethod: 4 |
||||
m_FillAmount: 1 |
||||
m_FillClockwise: 1 |
||||
m_FillOrigin: 0 |
||||
--- !u!114 &11400002 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100002} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: 1301386320, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
ignoreReversedGraphics: 1 |
||||
blockingObjects: 0 |
||||
m_BlockingMask: |
||||
serializedVersion: 2 |
||||
m_Bits: 4294967295 |
||||
--- !u!114 &11400004 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100002} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: 1980459831, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
m_UiScaleMode: 1 |
||||
m_ReferencePixelsPerUnit: 100 |
||||
m_ScaleFactor: 1 |
||||
m_ReferenceResolution: {x: 1024, y: 768} |
||||
m_ScreenMatchMode: 0 |
||||
m_MatchWidthOrHeight: 0 |
||||
m_PhysicalUnit: 3 |
||||
m_FallbackScreenDPI: 96 |
||||
m_DefaultSpriteDPI: 96 |
||||
m_DynamicPixelsPerUnit: 1 |
||||
--- !u!114 &11400006 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100004} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: 11500000, guid: 3a0bbe22c246e4c78ad8e9816cbae9d5, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
writingSpeed: 60 |
||||
writingSound: {fileID: 8300000, guid: 5a3c8e205638142dcb8227abe5f14f1f, type: 3} |
||||
loopWritingSound: 1 |
||||
punctuationPause: .400000006 |
||||
clickAnywhere: 1 |
||||
dialogCanvas: {fileID: 22300000} |
||||
nameText: {fileID: 11400012} |
||||
storyText: {fileID: 11400014} |
||||
characterImage: {fileID: 11400018} |
||||
characterTypingSound: {fileID: 0} |
||||
continueImage: {fileID: 11400000} |
||||
--- !u!114 &11400008 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100006} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
m_Material: {fileID: 0} |
||||
m_Color: {r: 1, g: 1, b: 1, a: .39199999} |
||||
m_Sprite: {fileID: 10909, guid: 0000000000000000f000000000000000, type: 0} |
||||
m_Type: 1 |
||||
m_PreserveAspect: 0 |
||||
m_FillCenter: 1 |
||||
m_FillMethod: 0 |
||||
m_FillAmount: 1 |
||||
m_FillClockwise: 1 |
||||
m_FillOrigin: 0 |
||||
--- !u!114 &11400010 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100008} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: -900027084, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
m_EffectColor: {r: 0, g: 0, b: 0, a: 1} |
||||
m_EffectDistance: {x: 1, y: -1} |
||||
m_UseGraphicAlpha: 1 |
||||
--- !u!114 &11400012 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100008} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
m_Material: {fileID: 0} |
||||
m_Color: {r: 1, g: 1, b: 1, a: 1} |
||||
m_FontData: |
||||
m_Font: {fileID: 12800000, guid: bb145366ce7024469a5758b08d31802c, type: 3} |
||||
m_FontSize: 28 |
||||
m_FontStyle: 0 |
||||
m_BestFit: 0 |
||||
m_MinSize: 10 |
||||
m_MaxSize: 40 |
||||
m_Alignment: 0 |
||||
m_RichText: 1 |
||||
m_HorizontalOverflow: 0 |
||||
m_VerticalOverflow: 0 |
||||
m_LineSpacing: 1 |
||||
m_Text: Character Name |
||||
--- !u!114 &11400014 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100010} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
m_Material: {fileID: 0} |
||||
m_Color: {r: 1, g: 1, b: 1, a: 1} |
||||
m_FontData: |
||||
m_Font: {fileID: 12800000, guid: bb145366ce7024469a5758b08d31802c, type: 3} |
||||
m_FontSize: 28 |
||||
m_FontStyle: 0 |
||||
m_BestFit: 0 |
||||
m_MinSize: 10 |
||||
m_MaxSize: 40 |
||||
m_Alignment: 3 |
||||
m_RichText: 1 |
||||
m_HorizontalOverflow: 0 |
||||
m_VerticalOverflow: 0 |
||||
m_LineSpacing: 1 |
||||
m_Text: Story text |
||||
--- !u!114 &11400016 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100010} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: -900027084, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
m_EffectColor: {r: 0, g: 0, b: 0, a: 1} |
||||
m_EffectDistance: {x: 1, y: -1} |
||||
m_UseGraphicAlpha: 1 |
||||
--- !u!114 &11400018 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100012} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
m_Material: {fileID: 0} |
||||
m_Color: {r: 1, g: 1, b: 1, a: 1} |
||||
m_Sprite: {fileID: 21300000, guid: ea8f56c43254d41728f5ac4e8299b6c9, type: 3} |
||||
m_Type: 0 |
||||
m_PreserveAspect: 1 |
||||
m_FillCenter: 1 |
||||
m_FillMethod: 4 |
||||
m_FillAmount: 1 |
||||
m_FillClockwise: 1 |
||||
m_FillOrigin: 0 |
||||
--- !u!114 &11400020 |
||||
MonoBehaviour: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100006} |
||||
m_Enabled: 1 |
||||
m_EditorHideFlags: 0 |
||||
m_Script: {fileID: -1862395651, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3} |
||||
m_Name: |
||||
m_EditorClassIdentifier: |
||||
delegates: |
||||
- eventID: 4 |
||||
callback: |
||||
m_PersistentCalls: |
||||
m_Calls: |
||||
- m_Target: {fileID: 11400006} |
||||
m_MethodName: OnPointerClick |
||||
m_Mode: 1 |
||||
m_Arguments: |
||||
m_ObjectArgument: {fileID: 0} |
||||
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine, Version=0.0.0.0, |
||||
Culture=neutral, PublicKeyToken=null |
||||
m_IntArgument: 0 |
||||
m_FloatArgument: 0 |
||||
m_StringArgument: |
||||
m_BoolArgument: 0 |
||||
m_CallState: 1 |
||||
m_TypeName: UnityEngine.EventSystems.EventTrigger+TriggerEvent, UnityEngine.UI, |
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null |
||||
--- !u!222 &22200000 |
||||
CanvasRenderer: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100000} |
||||
--- !u!222 &22200002 |
||||
CanvasRenderer: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100006} |
||||
--- !u!222 &22200004 |
||||
CanvasRenderer: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100008} |
||||
--- !u!222 &22200006 |
||||
CanvasRenderer: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100010} |
||||
--- !u!222 &22200008 |
||||
CanvasRenderer: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100012} |
||||
--- !u!223 &22300000 |
||||
Canvas: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100002} |
||||
m_Enabled: 1 |
||||
serializedVersion: 2 |
||||
m_RenderMode: 0 |
||||
m_Camera: {fileID: 0} |
||||
m_PlaneDistance: 100 |
||||
m_PixelPerfect: 0 |
||||
m_ReceivesEvents: 1 |
||||
m_OverrideSorting: 0 |
||||
m_OverridePixelPerfect: 0 |
||||
m_SortingLayerID: 0 |
||||
m_SortingOrder: 0 |
||||
--- !u!224 &22400000 |
||||
RectTransform: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100000} |
||||
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_Children: [] |
||||
m_Father: {fileID: 22400004} |
||||
m_RootOrder: 0 |
||||
m_AnchorMin: {x: .934000015, y: .0163103454} |
||||
m_AnchorMax: {x: .974001944, y: .0163103454} |
||||
m_AnchoredPosition: {x: .730010986, y: 19.5119991} |
||||
m_SizeDelta: {x: 1.70001221, y: 32.0999985} |
||||
m_Pivot: {x: .5, y: .5} |
||||
--- !u!224 &22400002 |
||||
RectTransform: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100002} |
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
||||
m_LocalPosition: {x: 0, y: 0, z: 0} |
||||
m_LocalScale: {x: 0, y: 0, z: 0} |
||||
m_Children: |
||||
- {fileID: 22400004} |
||||
m_Father: {fileID: 400000} |
||||
m_RootOrder: 0 |
||||
m_AnchorMin: {x: 0, y: 0} |
||||
m_AnchorMax: {x: 0, y: 0} |
||||
m_AnchoredPosition: {x: 0, y: 0} |
||||
m_SizeDelta: {x: 0, y: 0} |
||||
m_Pivot: {x: 0, y: 0} |
||||
--- !u!224 &22400004 |
||||
RectTransform: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100006} |
||||
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_Children: |
||||
- {fileID: 22400000} |
||||
- {fileID: 22400008} |
||||
- {fileID: 22400006} |
||||
- {fileID: 22400010} |
||||
m_Father: {fileID: 22400002} |
||||
m_RootOrder: 0 |
||||
m_AnchorMin: {x: 0, y: 0} |
||||
m_AnchorMax: {x: 1, y: 0} |
||||
m_AnchoredPosition: {x: 0, y: 91.0700073} |
||||
m_SizeDelta: {x: -56, y: 182.139999} |
||||
m_Pivot: {x: .5, y: .5} |
||||
--- !u!224 &22400006 |
||||
RectTransform: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100008} |
||||
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_Children: [] |
||||
m_Father: {fileID: 22400004} |
||||
m_RootOrder: 2 |
||||
m_AnchorMin: {x: 0, y: .793890119} |
||||
m_AnchorMax: {x: .904344141, y: .953296483} |
||||
m_AnchoredPosition: {x: 100.75, y: -.00597000122} |
||||
m_SizeDelta: {x: -202.5, y: .0119991302} |
||||
m_Pivot: {x: .5, y: .5} |
||||
--- !u!224 &22400008 |
||||
RectTransform: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100010} |
||||
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_Children: [] |
||||
m_Father: {fileID: 22400004} |
||||
m_RootOrder: 1 |
||||
m_AnchorMin: {x: 0, y: .200573966} |
||||
m_AnchorMax: {x: .974001944, y: .793890119} |
||||
m_AnchoredPosition: {x: 102, y: 1} |
||||
m_SizeDelta: {x: -200, y: -2} |
||||
m_Pivot: {x: .5, y: .5} |
||||
--- !u!224 &22400010 |
||||
RectTransform: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100012} |
||||
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_Children: [] |
||||
m_Father: {fileID: 22400004} |
||||
m_RootOrder: 3 |
||||
m_AnchorMin: {x: 0, y: 0} |
||||
m_AnchorMax: {x: 0, y: 0} |
||||
m_AnchoredPosition: {x: 79, y: .0699939728} |
||||
m_SizeDelta: {x: 216, y: 216} |
||||
m_Pivot: {x: .5, y: 0} |
||||
--- !u!225 &22500000 |
||||
CanvasGroup: |
||||
m_ObjectHideFlags: 1 |
||||
m_PrefabParentObject: {fileID: 0} |
||||
m_PrefabInternal: {fileID: 100100000} |
||||
m_GameObject: {fileID: 100006} |
||||
m_Enabled: 1 |
||||
m_Alpha: 1 |
||||
m_Interactable: 1 |
||||
m_BlocksRaycasts: 1 |
||||
m_IgnoreParentGroups: 0 |
||||
--- !u!1001 &100100000 |
||||
Prefab: |
||||
m_ObjectHideFlags: 1 |
||||
serializedVersion: 2 |
||||
m_Modification: |
||||
m_TransformParent: {fileID: 0} |
||||
m_Modifications: [] |
||||
m_RemovedComponents: [] |
||||
m_ParentPrefab: {fileID: 0} |
||||
m_RootGameObject: {fileID: 100004} |
||||
m_IsPrefabParent: 1 |
||||
m_IsExploded: 1 |
@ -1,4 +0,0 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 00974f07e5b9248d48d344335b83f4bd |
||||
NativeFormatImporter: |
||||
userData: |
Loading…
Reference in new issue