Reworked the dialogue system
Now the dialogue can use tags to add special effects Reorganized project structure, updating may require adding some using statements
This commit is contained in:
parent
95bad523b9
commit
0e8b8b1835
25 changed files with 1912 additions and 1266 deletions
|
@ -1,12 +1,16 @@
|
|||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu(fileName = "New Character", menuName = "Simple Tools/Character", order = 11)]
|
||||
public class Dialogue : ScriptableObject{
|
||||
namespace SimpleTools.DialogueSystem {
|
||||
[CreateAssetMenu(fileName = "New Dialogue", menuName = "Simple Tools/Dialogue", order = 11)]
|
||||
public class Dialogue : ScriptableObject {
|
||||
public DialogueBox[] sentences;
|
||||
}
|
||||
|
||||
public bool displayName;
|
||||
public string characterName;
|
||||
|
||||
[Space]
|
||||
public Sprite characterImage;
|
||||
[TextArea] public string[] sentences;
|
||||
}
|
||||
[System.Serializable]
|
||||
public class DialogueBox {
|
||||
public bool displayName;
|
||||
public string characterName;
|
||||
public Sprite characterImage;
|
||||
[TextArea(5, 10)] public string sentence;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue