gameplay所有基本功能都装了,加入了全局警告。加入飘字等各种东西。
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
|
||||
[CreateAssetMenu(fileName = "NewGalSO", menuName = "Galgame/galSO")]
|
||||
public class ingame_galgame_so : ScriptableObject
|
||||
{
|
||||
[System.Serializable]
|
||||
public class CharacterInfo
|
||||
{
|
||||
public string characterName;
|
||||
public Sprite characterImage;
|
||||
public Color themeColor;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class DialogueElement
|
||||
{
|
||||
[Header("位置配置")]
|
||||
public List<Vector2> customPositions; // 自定义位置列表
|
||||
|
||||
[Header("文本内容配置")]
|
||||
public List<DialogueText> textList; // 文字列表
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class DialogueText
|
||||
{
|
||||
[TextArea(3, 10)]
|
||||
[Tooltip("文本内容")]
|
||||
public string content; // 文本内容
|
||||
|
||||
[Tooltip("队列中第几个文本")]
|
||||
public int textNumber; // 队列中第几个文本
|
||||
[Tooltip("请填写characterList中的Character Name(不区分大小写)")]
|
||||
public string sender; // 文本发出者角色名
|
||||
|
||||
public enum ImagePosition { Left, Right }
|
||||
[Tooltip("对象图片左右位置")]
|
||||
public ImagePosition imagePos; // 对象图片左右位置
|
||||
|
||||
[Tooltip("文本出现时间")]
|
||||
public float appearTime; // 文本出现时间
|
||||
[Tooltip("文本持续时间")]
|
||||
public float duration; // 文本持续时间
|
||||
|
||||
public enum StepMethod { ClickToNext, WaitForDuration }
|
||||
[Tooltip("文本步进方法:点击后下一步 / 等待时长结束")]
|
||||
public StepMethod stepMethod; // 文本步进方法
|
||||
|
||||
public enum TimeAction { None, SlowMotion, Pause }
|
||||
[Tooltip("文本出现时动作")]
|
||||
public TimeAction timeAction; // 文本出现时动作
|
||||
|
||||
[Tooltip("文本播放期间时间流速,0为暂停")]
|
||||
[Range(0f, 1f)]
|
||||
public float slowMotionScale = 0.5f; // 慢动作允许TimeScale设置值
|
||||
|
||||
public enum EndAction { NextText, PauseQueue, EndPerformance }
|
||||
[Tooltip("文本结束动作")]
|
||||
public EndAction endAction; // 文本结束动作
|
||||
}
|
||||
|
||||
public enum TimelineBase { MusicTime, SceneStartTime, CustomTimer }
|
||||
public enum TriggerMethod { CodeTrigger, TimerTrigger, MixedTrigger }
|
||||
|
||||
[Header("全局配置")]
|
||||
[Tooltip("触发方式")]
|
||||
public TriggerMethod triggerMethod;
|
||||
[Tooltip("时间线基准")]
|
||||
public TimelineBase timelineStandard;
|
||||
|
||||
public List<CharacterInfo> characterList = new List<CharacterInfo>();
|
||||
public List<DialogueElement> dialogueList = new List<DialogueElement>();
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e7076655dfac6d34eb9ad82445b9962c
|
||||
@@ -0,0 +1,33 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: e7076655dfac6d34eb9ad82445b9962c, type: 3}
|
||||
m_Name: opGalSO
|
||||
m_EditorClassIdentifier:
|
||||
timelineStandard: 0
|
||||
characterList:
|
||||
- characterName: Sonia
|
||||
characterImage: {fileID: 0}
|
||||
themeColor: {r: 0, g: 0, b: 0, a: 0}
|
||||
dialogueList:
|
||||
- customPositions:
|
||||
- {x: 0, y: 0}
|
||||
textList:
|
||||
- content: "\u7535\u68CD\u7B11\u4F20\u4E4B\u8E29\u8E29\u80CC"
|
||||
textNumber: 1
|
||||
sender: Sonia
|
||||
imagePos: 0
|
||||
appearTime: 0
|
||||
duration: 0
|
||||
stepMethod: 1
|
||||
timeAction: 0
|
||||
slowMotionScale: 0
|
||||
endAction: 0
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e3d476a4d3a88f840ba9668263c66b6c
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user