
Now the dialogue can use tags to add special effects Reorganized project structure, updating may require adding some using statements
16 lines
No EOL
442 B
C#
16 lines
No EOL
442 B
C#
using UnityEngine;
|
|
|
|
namespace SimpleTools.DialogueSystem {
|
|
[CreateAssetMenu(fileName = "New Dialogue", menuName = "Simple Tools/Dialogue", order = 11)]
|
|
public class Dialogue : ScriptableObject {
|
|
public DialogueBox[] sentences;
|
|
}
|
|
|
|
[System.Serializable]
|
|
public class DialogueBox {
|
|
public bool displayName;
|
|
public string characterName;
|
|
public Sprite characterImage;
|
|
[TextArea(5, 10)] public string sentence;
|
|
}
|
|
} |