Roman 32e1fd2d93 任务:编写场景1逻辑
1.完成对话系统框架
(1.系统结构见图
(2.使用方法为对ConversationController单例使用OnCall(Staring 对话名)
(3.需要自行编辑对话内容,填写AConversation组件的内容即可

果咩,我摸了五天,求职的压力实在是太大了😿😿
2022-03-19 22:52:00 +08:00

20 lines
415 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Sirenix.OdinInspector;
/// <summary>
/// 代表一句对话包含内容的Sprite和enum的对话者
/// </summary>
/// <typeparam name="T">此次对话的Spaker的枚举类型</typeparam>
public class ASpeak
{
public enum Speaker
{
P1,
P2
}
public Sprite content;
public Speaker speaker;
}