调整剧情的character data
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
|
||||
namespace SLSFramework.StorySystem.Dialog
|
||||
{
|
||||
@@ -11,7 +12,7 @@ namespace SLSFramework.StorySystem.Dialog
|
||||
[Serializable]
|
||||
public class DialogNodeData : BaseNodeData
|
||||
{
|
||||
public CharacterData characterData;
|
||||
[FormerlySerializedAs("characterData")] public StoryCharacterData storyCharacterData;
|
||||
public string expressionKey; // 用于存储所选表情的 name
|
||||
public Vector2 characterPosition;
|
||||
[TextArea(3, 10)] public string dialogueText;
|
||||
|
||||
@@ -2,17 +2,17 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace SLSFramework.StorySystem.Dialog
|
||||
namespace SLSFramework.StorySystem
|
||||
{
|
||||
[CreateAssetMenu(fileName = "NewCharacterData", menuName = "StorySystem/Dialog/Character Data")]
|
||||
public partial class CharacterData : ScriptableObject
|
||||
[CreateAssetMenu(fileName = "NewCharacterData", menuName = "StorySystem/Character Data")]
|
||||
public partial class StoryCharacterData : ScriptableObject
|
||||
{
|
||||
public string characterName;
|
||||
|
||||
public List<Expression> expressions = new List<Expression>();
|
||||
}
|
||||
|
||||
public partial class CharacterData
|
||||
public partial class StoryCharacterData
|
||||
{
|
||||
[Serializable]
|
||||
public class Expression
|
||||
Reference in New Issue
Block a user