net.dreditor.twopointfived 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.attestation.p7m +0 -0
- package/CameraArrow.cs +127 -127
- package/CameraArrow.cs.meta +17 -17
- package/CameraArrowManager.cs +243 -243
- package/CameraArrowManager.cs.meta +11 -11
- package/CameraArrowVisibility.cs +118 -118
- package/CameraArrowVisibility.cs.meta +1 -1
- package/DREditor.TwoPointFiveD.asmdef +17 -17
- package/DREditor.TwoPointFiveD.asmdef.meta +7 -7
- package/DialogueEventOnDestroy.cs +37 -37
- package/DialogueEventOnDestroy.cs.meta +11 -11
- package/ITPFDListener.cs +20 -20
- package/ITPFDListener.cs.meta +11 -11
- package/PrepareTPFDCameras.cs +71 -71
- package/PrepareTPFDCameras.cs.meta +11 -11
- package/{Samples → Samples~}/Arrow_Canvas_Template.prefab +939 -939
- package/{Samples → Samples~}/Arrow_Canvas_Template.prefab.meta +7 -7
- package/{Samples → Samples~}/Camera_Arrow.prefab +218 -218
- package/{Samples → Samples~}/Camera_Arrow.prefab.meta +7 -7
- package/{Samples → Samples~}/PrepareTPFD.asset +14 -14
- package/{Samples → Samples~}/PrepareTPFD.asset.meta +8 -8
- package/{Samples → Samples~}/Prepare_TPFD_Cameras.prefab +137 -137
- package/{Samples → Samples~}/Prepare_TPFD_Cameras.prefab.meta +7 -7
- package/{Samples → Samples~}/Prepare_TPFD_Listener.prefab +51 -51
- package/{Samples → Samples~}/Prepare_TPFD_Listener.prefab.meta +7 -7
- package/{Samples → Samples~}/TPFD_Manager.prefab +63 -63
- package/{Samples → Samples~}/TPFD_Manager.prefab.meta +7 -7
- package/{Samples → Samples~}/TPFD_Move_In_Dialogue_Handler.prefab +56 -56
- package/{Samples → Samples~}/TPFD_Move_In_Dialogue_Handler.prefab.meta +7 -7
- package/TPFDManager.cs +149 -149
- package/TPFDManager.cs.meta +11 -11
- package/TPFDManagerBase.cs +186 -186
- package/TPFDManagerBase.cs.meta +11 -11
- package/TPFDMoveInDialogueHandler.cs +185 -185
- package/TPFDMoveInDialogueHandler.cs.meta +11 -11
- package/package.json +41 -36
- package/package.json.meta +7 -7
- package/Samples.meta +0 -8
package/CameraArrowManager.cs
CHANGED
|
@@ -1,244 +1,244 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.Dialogues.Events;
|
|
3
|
-
using DREditor.Dialogues.Finishing;
|
|
4
|
-
using DREditor.Dialogues.Starting;
|
|
5
|
-
using DREditor.EventObjects;
|
|
6
|
-
using DREditor.UIHandling;
|
|
7
|
-
using System;
|
|
8
|
-
using System.Collections;
|
|
9
|
-
using System.Collections.Generic;
|
|
10
|
-
using System.Linq;
|
|
11
|
-
using UnityEngine;
|
|
12
|
-
|
|
13
|
-
namespace DREditor.TwoPointFiveD
|
|
14
|
-
{
|
|
15
|
-
/// <summary>
|
|
16
|
-
///
|
|
17
|
-
/// </summary>
|
|
18
|
-
/// <remarks></remarks>
|
|
19
|
-
[ClassHeader(nameof(UIVisibilityHandler) +
|
|
20
|
-
"\n\n")]
|
|
21
|
-
public class CameraArrowManager : UIVisibilityHandler
|
|
22
|
-
{
|
|
23
|
-
/// <summary>
|
|
24
|
-
///
|
|
25
|
-
/// </summary>
|
|
26
|
-
[Header("")]
|
|
27
|
-
[Divider]
|
|
28
|
-
[Tooltip("")]
|
|
29
|
-
[SerializeField] protected BoolWithEvent inTPFD = null;
|
|
30
|
-
|
|
31
|
-
/// <summary>
|
|
32
|
-
///
|
|
33
|
-
/// </summary>
|
|
34
|
-
[Tooltip("")]
|
|
35
|
-
[SerializeField] protected BoolWithEvent inDialogue = null;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
/// <summary>
|
|
39
|
-
///
|
|
40
|
-
/// </summary>
|
|
41
|
-
[Header("")]
|
|
42
|
-
[Divider]
|
|
43
|
-
[Tooltip("")]
|
|
44
|
-
[SerializeField] protected List<SceneEventListener> showListeners = new();
|
|
45
|
-
|
|
46
|
-
/// <summary>
|
|
47
|
-
///
|
|
48
|
-
/// </summary>
|
|
49
|
-
[Tooltip("")]
|
|
50
|
-
[SerializeField] protected List<SceneEventListener> hideListeners = new();
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/// <summary>
|
|
54
|
-
///
|
|
55
|
-
/// </summary>
|
|
56
|
-
[Header("")]
|
|
57
|
-
[Divider]
|
|
58
|
-
[Tooltip("")]
|
|
59
|
-
[SerializeField] protected List<string> showEvents = new() { "SubAreaOnDidntLeave" };
|
|
60
|
-
|
|
61
|
-
/// <summary>
|
|
62
|
-
///
|
|
63
|
-
/// </summary>
|
|
64
|
-
[Tooltip("")]
|
|
65
|
-
[SerializeField] protected List<string> hideEvents = new() { "OnLeaveAsk" };
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
/// <summary>
|
|
69
|
-
///
|
|
70
|
-
/// </summary>
|
|
71
|
-
protected bool listening = false;
|
|
72
|
-
|
|
73
|
-
/// <summary>
|
|
74
|
-
///
|
|
75
|
-
/// </summary>
|
|
76
|
-
protected bool dialogueIsEnding = false;
|
|
77
|
-
|
|
78
|
-
/// <summary>
|
|
79
|
-
///
|
|
80
|
-
/// </summary>
|
|
81
|
-
protected IEnumerable<IDialoguePrepareEvent> dialoguePrepareEvents;
|
|
82
|
-
|
|
83
|
-
/// <summary>
|
|
84
|
-
///
|
|
85
|
-
/// </summary>
|
|
86
|
-
protected IEnumerable<IEndDialogueEvent> dialogueEndEvents;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
/// <summary>
|
|
91
|
-
///
|
|
92
|
-
/// </summary>
|
|
93
|
-
protected override void Awake()
|
|
94
|
-
{
|
|
95
|
-
base.Awake();
|
|
96
|
-
|
|
97
|
-
dialoguePrepareEvents = FindObjectsByType<MonoBehaviour>().OfType<IDialoguePrepareEvent>();
|
|
98
|
-
|
|
99
|
-
dialogueEndEvents = FindObjectsByType<MonoBehaviour>().OfType<IEndDialogueEvent>();
|
|
100
|
-
|
|
101
|
-
OnTPFDModeChanged(inTPFD.Value);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/// <summary>
|
|
105
|
-
///
|
|
106
|
-
/// </summary>
|
|
107
|
-
/// <param name="inTPFD"></param>
|
|
108
|
-
protected virtual void OnTPFDModeChanged(bool inTPFD)
|
|
109
|
-
{
|
|
110
|
-
if (inTPFD && listening)
|
|
111
|
-
return;
|
|
112
|
-
|
|
113
|
-
if (inTPFD)
|
|
114
|
-
StartListeningToEvents();
|
|
115
|
-
else
|
|
116
|
-
StopListeningToEvents();
|
|
117
|
-
|
|
118
|
-
listening = inTPFD;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/// <summary>
|
|
122
|
-
///
|
|
123
|
-
/// </summary>
|
|
124
|
-
protected virtual void StartListeningToEvents()
|
|
125
|
-
{
|
|
126
|
-
if (dialogueIsEnding || !inDialogue.Value)
|
|
127
|
-
visibleUI.Show();
|
|
128
|
-
|
|
129
|
-
foreach (var sceneEvent in showListeners)
|
|
130
|
-
sceneEvent.AddListener(visibleUI.Show);
|
|
131
|
-
|
|
132
|
-
foreach (var sceneEvent in hideListeners)
|
|
133
|
-
sceneEvent.AddListener(visibleUI.Hide);
|
|
134
|
-
|
|
135
|
-
DialogueEventSystem.StartListening(showEvents, ShowEvent);
|
|
136
|
-
|
|
137
|
-
DialogueEventSystem.StartListening(hideEvents, HideEvent);
|
|
138
|
-
|
|
139
|
-
SubscribeToDialogueEnding(true, visibleUI.Show);
|
|
140
|
-
|
|
141
|
-
foreach (var preparable in dialoguePrepareEvents)
|
|
142
|
-
preparable.OnDialoguePrepare += visibleUI.Hide;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/// <summary>
|
|
146
|
-
///
|
|
147
|
-
/// </summary>
|
|
148
|
-
protected virtual void StopListeningToEvents()
|
|
149
|
-
{
|
|
150
|
-
if (gameObject.activeSelf)
|
|
151
|
-
visibleUI.Hide();
|
|
152
|
-
|
|
153
|
-
foreach (var sceneEvent in showListeners)
|
|
154
|
-
sceneEvent.RemoveListener(visibleUI.Show);
|
|
155
|
-
|
|
156
|
-
foreach (var sceneEvent in hideListeners)
|
|
157
|
-
sceneEvent.RemoveListener(visibleUI.Hide);
|
|
158
|
-
|
|
159
|
-
DialogueEventSystem.StopListening(showEvents, ShowEvent);
|
|
160
|
-
|
|
161
|
-
DialogueEventSystem.StopListening(hideEvents, HideEvent);
|
|
162
|
-
|
|
163
|
-
SubscribeToDialogueEnding(false, visibleUI.Show);
|
|
164
|
-
|
|
165
|
-
foreach (var preparable in dialoguePrepareEvents)
|
|
166
|
-
preparable.OnDialoguePrepare -= visibleUI.Hide;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/// <summary>
|
|
170
|
-
///
|
|
171
|
-
/// </summary>
|
|
172
|
-
/// <param name="o"></param>
|
|
173
|
-
protected virtual void ShowEvent(object o = null) => visibleUI.Show();
|
|
174
|
-
|
|
175
|
-
/// <summary>
|
|
176
|
-
///
|
|
177
|
-
/// </summary>
|
|
178
|
-
/// <param name="o"></param>
|
|
179
|
-
protected virtual void HideEvent(object o = null) => visibleUI.Hide();
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
/// <summary>
|
|
183
|
-
///
|
|
184
|
-
/// </summary>
|
|
185
|
-
protected virtual void OnEnable()
|
|
186
|
-
{
|
|
187
|
-
inTPFD.AddListener(OnTPFDModeChanged);
|
|
188
|
-
|
|
189
|
-
SubscribeToDialogueEnding(true, NoticedDialogueEnding);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/// <summary>
|
|
193
|
-
///
|
|
194
|
-
/// </summary>
|
|
195
|
-
protected virtual void OnDisable()
|
|
196
|
-
{
|
|
197
|
-
inTPFD.RemoveListener(OnTPFDModeChanged);
|
|
198
|
-
|
|
199
|
-
SubscribeToDialogueEnding(false, NoticedDialogueEnding);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
/// <summary>
|
|
203
|
-
///
|
|
204
|
-
/// </summary>
|
|
205
|
-
/// <param name="subscribe"></param>
|
|
206
|
-
/// <param name="response"></param>
|
|
207
|
-
protected virtual void SubscribeToDialogueEnding(bool subscribe, Action response)
|
|
208
|
-
{
|
|
209
|
-
foreach (var endable in dialogueEndEvents)
|
|
210
|
-
if (subscribe)
|
|
211
|
-
endable.OnDialogueEnd += response;
|
|
212
|
-
else
|
|
213
|
-
endable.OnDialogueEnd -= response;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/// <summary>
|
|
217
|
-
///
|
|
218
|
-
/// </summary>
|
|
219
|
-
protected virtual void NoticedDialogueEnding()
|
|
220
|
-
{
|
|
221
|
-
if (inDialogue.Value)
|
|
222
|
-
{
|
|
223
|
-
dialogueIsEnding = true;
|
|
224
|
-
|
|
225
|
-
StartCoroutine(WaitForDialogueOff());
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/// <summary>
|
|
230
|
-
///
|
|
231
|
-
/// </summary>
|
|
232
|
-
protected virtual IEnumerator WaitForDialogueOff()
|
|
233
|
-
{
|
|
234
|
-
yield return new WaitUntil(() => !inDialogue.Value);
|
|
235
|
-
|
|
236
|
-
SubscribeToDialogueEnding(false, NoticedDialogueEnding);
|
|
237
|
-
|
|
238
|
-
dialogueIsEnding = false;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
protected virtual void OnDestroy() => StopListeningToEvents();
|
|
243
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.Dialogues.Events;
|
|
3
|
+
using DREditor.Dialogues.Finishing;
|
|
4
|
+
using DREditor.Dialogues.Starting;
|
|
5
|
+
using DREditor.EventObjects;
|
|
6
|
+
using DREditor.UIHandling;
|
|
7
|
+
using System;
|
|
8
|
+
using System.Collections;
|
|
9
|
+
using System.Collections.Generic;
|
|
10
|
+
using System.Linq;
|
|
11
|
+
using UnityEngine;
|
|
12
|
+
|
|
13
|
+
namespace DREditor.TwoPointFiveD
|
|
14
|
+
{
|
|
15
|
+
/// <summary>
|
|
16
|
+
///
|
|
17
|
+
/// </summary>
|
|
18
|
+
/// <remarks></remarks>
|
|
19
|
+
[ClassHeader(nameof(UIVisibilityHandler) +
|
|
20
|
+
"\n\n")]
|
|
21
|
+
public class CameraArrowManager : UIVisibilityHandler
|
|
22
|
+
{
|
|
23
|
+
/// <summary>
|
|
24
|
+
///
|
|
25
|
+
/// </summary>
|
|
26
|
+
[Header("")]
|
|
27
|
+
[Divider]
|
|
28
|
+
[Tooltip("")]
|
|
29
|
+
[SerializeField] protected BoolWithEvent inTPFD = null;
|
|
30
|
+
|
|
31
|
+
/// <summary>
|
|
32
|
+
///
|
|
33
|
+
/// </summary>
|
|
34
|
+
[Tooltip("")]
|
|
35
|
+
[SerializeField] protected BoolWithEvent inDialogue = null;
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
/// <summary>
|
|
39
|
+
///
|
|
40
|
+
/// </summary>
|
|
41
|
+
[Header("")]
|
|
42
|
+
[Divider]
|
|
43
|
+
[Tooltip("")]
|
|
44
|
+
[SerializeField] protected List<SceneEventListener> showListeners = new();
|
|
45
|
+
|
|
46
|
+
/// <summary>
|
|
47
|
+
///
|
|
48
|
+
/// </summary>
|
|
49
|
+
[Tooltip("")]
|
|
50
|
+
[SerializeField] protected List<SceneEventListener> hideListeners = new();
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/// <summary>
|
|
54
|
+
///
|
|
55
|
+
/// </summary>
|
|
56
|
+
[Header("")]
|
|
57
|
+
[Divider]
|
|
58
|
+
[Tooltip("")]
|
|
59
|
+
[SerializeField] protected List<string> showEvents = new() { "SubAreaOnDidntLeave" };
|
|
60
|
+
|
|
61
|
+
/// <summary>
|
|
62
|
+
///
|
|
63
|
+
/// </summary>
|
|
64
|
+
[Tooltip("")]
|
|
65
|
+
[SerializeField] protected List<string> hideEvents = new() { "OnLeaveAsk" };
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
/// <summary>
|
|
69
|
+
///
|
|
70
|
+
/// </summary>
|
|
71
|
+
protected bool listening = false;
|
|
72
|
+
|
|
73
|
+
/// <summary>
|
|
74
|
+
///
|
|
75
|
+
/// </summary>
|
|
76
|
+
protected bool dialogueIsEnding = false;
|
|
77
|
+
|
|
78
|
+
/// <summary>
|
|
79
|
+
///
|
|
80
|
+
/// </summary>
|
|
81
|
+
protected IEnumerable<IDialoguePrepareEvent> dialoguePrepareEvents;
|
|
82
|
+
|
|
83
|
+
/// <summary>
|
|
84
|
+
///
|
|
85
|
+
/// </summary>
|
|
86
|
+
protected IEnumerable<IEndDialogueEvent> dialogueEndEvents;
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
/// <summary>
|
|
91
|
+
///
|
|
92
|
+
/// </summary>
|
|
93
|
+
protected override void Awake()
|
|
94
|
+
{
|
|
95
|
+
base.Awake();
|
|
96
|
+
|
|
97
|
+
dialoguePrepareEvents = FindObjectsByType<MonoBehaviour>().OfType<IDialoguePrepareEvent>();
|
|
98
|
+
|
|
99
|
+
dialogueEndEvents = FindObjectsByType<MonoBehaviour>().OfType<IEndDialogueEvent>();
|
|
100
|
+
|
|
101
|
+
OnTPFDModeChanged(inTPFD.Value);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/// <summary>
|
|
105
|
+
///
|
|
106
|
+
/// </summary>
|
|
107
|
+
/// <param name="inTPFD"></param>
|
|
108
|
+
protected virtual void OnTPFDModeChanged(bool inTPFD)
|
|
109
|
+
{
|
|
110
|
+
if (inTPFD && listening)
|
|
111
|
+
return;
|
|
112
|
+
|
|
113
|
+
if (inTPFD)
|
|
114
|
+
StartListeningToEvents();
|
|
115
|
+
else
|
|
116
|
+
StopListeningToEvents();
|
|
117
|
+
|
|
118
|
+
listening = inTPFD;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/// <summary>
|
|
122
|
+
///
|
|
123
|
+
/// </summary>
|
|
124
|
+
protected virtual void StartListeningToEvents()
|
|
125
|
+
{
|
|
126
|
+
if (dialogueIsEnding || !inDialogue.Value)
|
|
127
|
+
visibleUI.Show();
|
|
128
|
+
|
|
129
|
+
foreach (var sceneEvent in showListeners)
|
|
130
|
+
sceneEvent.AddListener(visibleUI.Show);
|
|
131
|
+
|
|
132
|
+
foreach (var sceneEvent in hideListeners)
|
|
133
|
+
sceneEvent.AddListener(visibleUI.Hide);
|
|
134
|
+
|
|
135
|
+
DialogueEventSystem.StartListening(showEvents, ShowEvent);
|
|
136
|
+
|
|
137
|
+
DialogueEventSystem.StartListening(hideEvents, HideEvent);
|
|
138
|
+
|
|
139
|
+
SubscribeToDialogueEnding(true, visibleUI.Show);
|
|
140
|
+
|
|
141
|
+
foreach (var preparable in dialoguePrepareEvents)
|
|
142
|
+
preparable.OnDialoguePrepare += visibleUI.Hide;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/// <summary>
|
|
146
|
+
///
|
|
147
|
+
/// </summary>
|
|
148
|
+
protected virtual void StopListeningToEvents()
|
|
149
|
+
{
|
|
150
|
+
if (gameObject.activeSelf)
|
|
151
|
+
visibleUI.Hide();
|
|
152
|
+
|
|
153
|
+
foreach (var sceneEvent in showListeners)
|
|
154
|
+
sceneEvent.RemoveListener(visibleUI.Show);
|
|
155
|
+
|
|
156
|
+
foreach (var sceneEvent in hideListeners)
|
|
157
|
+
sceneEvent.RemoveListener(visibleUI.Hide);
|
|
158
|
+
|
|
159
|
+
DialogueEventSystem.StopListening(showEvents, ShowEvent);
|
|
160
|
+
|
|
161
|
+
DialogueEventSystem.StopListening(hideEvents, HideEvent);
|
|
162
|
+
|
|
163
|
+
SubscribeToDialogueEnding(false, visibleUI.Show);
|
|
164
|
+
|
|
165
|
+
foreach (var preparable in dialoguePrepareEvents)
|
|
166
|
+
preparable.OnDialoguePrepare -= visibleUI.Hide;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/// <summary>
|
|
170
|
+
///
|
|
171
|
+
/// </summary>
|
|
172
|
+
/// <param name="o"></param>
|
|
173
|
+
protected virtual void ShowEvent(object o = null) => visibleUI.Show();
|
|
174
|
+
|
|
175
|
+
/// <summary>
|
|
176
|
+
///
|
|
177
|
+
/// </summary>
|
|
178
|
+
/// <param name="o"></param>
|
|
179
|
+
protected virtual void HideEvent(object o = null) => visibleUI.Hide();
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
/// <summary>
|
|
183
|
+
///
|
|
184
|
+
/// </summary>
|
|
185
|
+
protected virtual void OnEnable()
|
|
186
|
+
{
|
|
187
|
+
inTPFD.AddListener(OnTPFDModeChanged);
|
|
188
|
+
|
|
189
|
+
SubscribeToDialogueEnding(true, NoticedDialogueEnding);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/// <summary>
|
|
193
|
+
///
|
|
194
|
+
/// </summary>
|
|
195
|
+
protected virtual void OnDisable()
|
|
196
|
+
{
|
|
197
|
+
inTPFD.RemoveListener(OnTPFDModeChanged);
|
|
198
|
+
|
|
199
|
+
SubscribeToDialogueEnding(false, NoticedDialogueEnding);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/// <summary>
|
|
203
|
+
///
|
|
204
|
+
/// </summary>
|
|
205
|
+
/// <param name="subscribe"></param>
|
|
206
|
+
/// <param name="response"></param>
|
|
207
|
+
protected virtual void SubscribeToDialogueEnding(bool subscribe, Action response)
|
|
208
|
+
{
|
|
209
|
+
foreach (var endable in dialogueEndEvents)
|
|
210
|
+
if (subscribe)
|
|
211
|
+
endable.OnDialogueEnd += response;
|
|
212
|
+
else
|
|
213
|
+
endable.OnDialogueEnd -= response;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/// <summary>
|
|
217
|
+
///
|
|
218
|
+
/// </summary>
|
|
219
|
+
protected virtual void NoticedDialogueEnding()
|
|
220
|
+
{
|
|
221
|
+
if (inDialogue.Value)
|
|
222
|
+
{
|
|
223
|
+
dialogueIsEnding = true;
|
|
224
|
+
|
|
225
|
+
StartCoroutine(WaitForDialogueOff());
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/// <summary>
|
|
230
|
+
///
|
|
231
|
+
/// </summary>
|
|
232
|
+
protected virtual IEnumerator WaitForDialogueOff()
|
|
233
|
+
{
|
|
234
|
+
yield return new WaitUntil(() => !inDialogue.Value);
|
|
235
|
+
|
|
236
|
+
SubscribeToDialogueEnding(false, NoticedDialogueEnding);
|
|
237
|
+
|
|
238
|
+
dialogueIsEnding = false;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
protected virtual void OnDestroy() => StopListeningToEvents();
|
|
243
|
+
}
|
|
244
244
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: b78b464ad02c179439e34f374cc387b5
|
|
3
|
-
MonoImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
serializedVersion: 2
|
|
6
|
-
defaultReferences: []
|
|
7
|
-
executionOrder: 0
|
|
8
|
-
icon: {instanceID: 0}
|
|
9
|
-
userData:
|
|
10
|
-
assetBundleName:
|
|
11
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: b78b464ad02c179439e34f374cc387b5
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|