浏览代码

Update DialogueDataSO.cs to support branching

/main
rainaldisatria 4 年前
当前提交
6fabd6a2
共有 1 个文件被更改,包括 13 次插入1 次删除
  1. 14
      UOP1_Project/Assets/Scripts/Dialogues/DialogueDataSO.cs

14
UOP1_Project/Assets/Scripts/Dialogues/DialogueDataSO.cs


using System.Collections.Generic;
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Timeline;

public class DialogueDataSO : ScriptableObject
{
public List<DialogueLineSO> dialogueLines;
public List<Choice> Choices;
[Serializable]
public class Choice
{
[SerializeField] private string _optionName;
[SerializeField] private DialogueDataSO _response;
public string OptionName { get => _optionName; }
public DialogueDataSO Response { get => _response; }
}
正在加载...
取消
保存