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
12
Tools/MonobehaviourExtensions.cs
Normal file
12
Tools/MonobehaviourExtensions.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace SimpleTools {
|
||||
public static class MonobehaviourExtensions {
|
||||
public static void EnsureCoroutineStopped(this MonoBehaviour value, ref Coroutine routine) {
|
||||
if (routine != null) {
|
||||
value.StopCoroutine(routine);
|
||||
routine = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue