net.dreditor.endevents 0.1.6 → 0.1.8

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.
Files changed (48) hide show
  1. package/.attestation.p7m +0 -0
  2. package/CustomCallEndEventHandler.cs +57 -57
  3. package/CustomCallEndEventHandler.cs.meta +11 -11
  4. package/DREditor.EndEvents.asmdef +19 -19
  5. package/DREditor.EndEvents.asmdef.meta +7 -7
  6. package/DirectToEndEventHandler.cs +131 -131
  7. package/DirectToEndEventHandler.cs.meta +11 -11
  8. package/DirectToTransitionalEndEventHandler.cs +30 -30
  9. package/DirectToTransitionalEndEventHandler.cs.meta +11 -11
  10. package/MainMenuTransitionEndEventHandler.cs +48 -48
  11. package/MainMenuTransitionEndEventHandler.cs.meta +11 -11
  12. package/PauseOptionEndEventHandler.cs +46 -46
  13. package/PauseOptionEndEventHandler.cs.meta +11 -11
  14. package/PhaseChangeEndEventHandler.cs +55 -55
  15. package/PhaseChangeEndEventHandler.cs.meta +11 -11
  16. package/{Samples → Samples~}/Custom_Call_End_Event_Handler.prefab +47 -47
  17. package/{Samples → Samples~}/Custom_Call_End_Event_Handler.prefab.meta +7 -7
  18. package/{Samples → Samples~}/Direct_To_Transitional_End_Event_Handler.prefab +139 -139
  19. package/{Samples → Samples~}/Direct_To_Transitional_End_Event_Handler.prefab.meta +7 -7
  20. package/{Samples → Samples~}/Main_Menu_Transition_End_Event_Handler.prefab +63 -63
  21. package/{Samples → Samples~}/Main_Menu_Transition_End_Event_Handler.prefab.meta +7 -7
  22. package/{Samples → Samples~}/Pause_Option_End_Event_Handler.prefab +48 -48
  23. package/{Samples → Samples~}/Pause_Option_End_Event_Handler.prefab.meta +7 -7
  24. package/{Samples → Samples~}/PhaseChangeEndEventHandler.prefab +48 -48
  25. package/{Samples → Samples~}/PhaseChangeEndEventHandler.prefab.meta +7 -7
  26. package/{Samples → Samples~}/Scene_Transition_End_Event_Handler.prefab +54 -54
  27. package/{Samples → Samples~}/Scene_Transition_End_Event_Handler.prefab.meta +7 -7
  28. package/{Samples → Samples~}/SkipTrialSequences.asset +21 -21
  29. package/{Samples → Samples~}/SkipTrialSequences.asset.meta +8 -8
  30. package/{Samples → Samples~}/Skip_Sequence_End_Event_Handler.prefab +47 -47
  31. package/{Samples → Samples~}/Skip_Sequence_End_Event_Handler.prefab.meta +7 -7
  32. package/{Samples → Samples~}/Trigger_Flag_End_Event_Handler.prefab +46 -46
  33. package/{Samples → Samples~}/Trigger_Flag_End_Event_Handler.prefab.meta +7 -7
  34. package/{Samples → Samples~}/UpdateDirectTo.asset +15 -15
  35. package/{Samples → Samples~}/UpdateDirectTo.asset.meta +8 -8
  36. package/{Samples → Samples~}/Variable_End_Event_Handler.prefab +49 -49
  37. package/{Samples → Samples~}/Variable_End_Event_Handler.prefab.meta +7 -7
  38. package/SceneTransitionEndEventHandler.cs +169 -169
  39. package/SceneTransitionEndEventHandler.cs.meta +11 -11
  40. package/SkipSequenceEndEventHandler.cs +35 -35
  41. package/SkipSequenceEndEventHandler.cs.meta +11 -11
  42. package/TriggerFlagEndEventHandler.cs +41 -41
  43. package/TriggerFlagEndEventHandler.cs.meta +11 -11
  44. package/VariableEndEventHandler.cs +111 -111
  45. package/VariableEndEventHandler.cs.meta +11 -11
  46. package/package.json +43 -38
  47. package/package.json.meta +7 -7
  48. package/Samples.meta +0 -8
Binary file
@@ -1,58 +1,58 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.Dialogues;
3
- using DREditor.Dialogues.Ending;
4
- using DREditor.Dialogues.Events;
5
- using DREditor.EventObjects;
6
- using System;
7
- using UnityEngine;
8
-
9
- namespace DREditor.EndEvents
10
- {
11
- /// <summary>
12
- ///
13
- /// </summary>
14
- [ClassHeader(nameof(DialogueComponent) + ", " + nameof(IDialogueEndEvent) +
15
- "\n\n")]
16
- public class CustomCallEndEventHandler : DialogueComponent, IDialogueEndEvent
17
- {
18
- /// <summary>
19
- ///
20
- /// </summary>
21
- [Tooltip("")]
22
- [SerializeField] protected BoolWithEvent isLeaving = null;
23
-
24
-
25
- /// <inheritdoc/>
26
- public virtual bool EvaluateEndEvent<T>(DialogueBase<T> currentDialogue, Action<DialogueCore[]> interruptDialogue)
27
- where T : Line
28
- => EvaluateCustomEndEvent(currentDialogue, interruptDialogue);
29
-
30
- /// <summary>
31
- ///
32
- /// </summary>
33
- /// <typeparam name="T"></typeparam>
34
- /// <param name="dialogue"></param>
35
- /// <param name="interruptDialogue"></param>
36
- /// <returns></returns>
37
- protected virtual bool EvaluateCustomEndEvent<T>(DialogueBase<T> dialogue, Action<DialogueCore[]> interruptDialogue)
38
- where T : Line
39
- {
40
- if (dialogue is Dialogue currentDialogue && currentDialogue != null)
41
- {
42
- bool isntLeaving = !isLeaving.Value;
43
-
44
- bool endEventIsValid = currentDialogue.EndEvent.Enabled && currentDialogue.EndEvent.CustomCall != "";
45
-
46
- bool shouldTriggerEvent = endEventIsValid && isntLeaving;
47
-
48
- if (shouldTriggerEvent)
49
- DialogueEventSystem.TriggerEvent(currentDialogue.EndEvent.CustomCall);
50
-
51
- if (shouldTriggerEvent && currentDialogue.EndEvent.CallBreak)
52
- return true;
53
- }
54
-
55
- return false;
56
- }
57
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Dialogues;
3
+ using DREditor.Dialogues.Ending;
4
+ using DREditor.Dialogues.Events;
5
+ using DREditor.EventObjects;
6
+ using System;
7
+ using UnityEngine;
8
+
9
+ namespace DREditor.EndEvents
10
+ {
11
+ /// <summary>
12
+ ///
13
+ /// </summary>
14
+ [ClassHeader(nameof(DialogueComponent) + ", " + nameof(IDialogueEndEvent) +
15
+ "\n\n")]
16
+ public class CustomCallEndEventHandler : DialogueComponent, IDialogueEndEvent
17
+ {
18
+ /// <summary>
19
+ ///
20
+ /// </summary>
21
+ [Tooltip("")]
22
+ [SerializeField] protected BoolWithEvent isLeaving = null;
23
+
24
+
25
+ /// <inheritdoc/>
26
+ public virtual bool EvaluateEndEvent<T>(DialogueBase<T> currentDialogue, Action<DialogueCore[]> interruptDialogue)
27
+ where T : Line
28
+ => EvaluateCustomEndEvent(currentDialogue, interruptDialogue);
29
+
30
+ /// <summary>
31
+ ///
32
+ /// </summary>
33
+ /// <typeparam name="T"></typeparam>
34
+ /// <param name="dialogue"></param>
35
+ /// <param name="interruptDialogue"></param>
36
+ /// <returns></returns>
37
+ protected virtual bool EvaluateCustomEndEvent<T>(DialogueBase<T> dialogue, Action<DialogueCore[]> interruptDialogue)
38
+ where T : Line
39
+ {
40
+ if (dialogue is Dialogue currentDialogue && currentDialogue != null)
41
+ {
42
+ bool isntLeaving = !isLeaving.Value;
43
+
44
+ bool endEventIsValid = currentDialogue.EndEvent.Enabled && currentDialogue.EndEvent.CustomCall != "";
45
+
46
+ bool shouldTriggerEvent = endEventIsValid && isntLeaving;
47
+
48
+ if (shouldTriggerEvent)
49
+ DialogueEventSystem.TriggerEvent(currentDialogue.EndEvent.CustomCall);
50
+
51
+ if (shouldTriggerEvent && currentDialogue.EndEvent.CallBreak)
52
+ return true;
53
+ }
54
+
55
+ return false;
56
+ }
57
+ }
58
58
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: eed47917d358b524996353f5fcb8a383
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: eed47917d358b524996353f5fcb8a383
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,20 +1,20 @@
1
- {
2
- "name": "DREditor.EndEvents",
3
- "rootNamespace": "",
4
- "references": [
5
- "DREditor",
6
- "DREditor.Fading",
7
- "DREditor.Progressing.Handling",
8
- "DREditor.RoomLoading",
9
- "DREditor.UI.Menus"
10
- ],
11
- "includePlatforms": [],
12
- "excludePlatforms": [],
13
- "allowUnsafeCode": false,
14
- "overrideReferences": false,
15
- "precompiledReferences": [],
16
- "autoReferenced": true,
17
- "defineConstraints": [],
18
- "versionDefines": [],
19
- "noEngineReferences": false
1
+ {
2
+ "name": "DREditor.EndEvents",
3
+ "rootNamespace": "",
4
+ "references": [
5
+ "DREditor",
6
+ "DREditor.Fading",
7
+ "DREditor.Progressing.Handling",
8
+ "DREditor.RoomLoading",
9
+ "DREditor.UI.Menus"
10
+ ],
11
+ "includePlatforms": [],
12
+ "excludePlatforms": [],
13
+ "allowUnsafeCode": false,
14
+ "overrideReferences": false,
15
+ "precompiledReferences": [],
16
+ "autoReferenced": true,
17
+ "defineConstraints": [],
18
+ "versionDefines": [],
19
+ "noEngineReferences": false
20
20
  }
@@ -1,7 +1,7 @@
1
- fileFormatVersion: 2
2
- guid: 16a9124cbd07a4c41afa2d26d684e288
3
- AssemblyDefinitionImporter:
4
- externalObjects: {}
5
- userData:
6
- assetBundleName:
7
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 16a9124cbd07a4c41afa2d26d684e288
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -1,132 +1,132 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.Dialogues;
3
- using DREditor.Dialogues.Ending;
4
- using DREditor.EventObjects;
5
- using DREditor.Saving;
6
- using DREditor.Services;
7
- using System;
8
- using System.Collections.Generic;
9
- using System.Linq;
10
- using UnityEngine;
11
-
12
- namespace DREditor.EndEvents
13
- {
14
- /// <summary>
15
- ///
16
- /// </summary>
17
- [ClassHeader(nameof(DialogueComponent) + ", " + nameof(IDialogueEndEvent) + ", " + nameof(IClearDialogueSaveData) + ", " +
18
- nameof(IDRESaveable) + ", " + nameof(IDRELoadable) + ", " + nameof(ISceneEventListener) + ", " + nameof(IToTitleScreen) +
19
- "\n\n")]
20
- public class DirectToEndEventHandler : DialogueComponent, IDialogueEndEvent, IClearDialogueSaveData,
21
- IDRESaveable, IDRELoadable, ISceneEventListener, IToTitleScreen
22
- {
23
- /// <summary>
24
- ///
25
- /// </summary>
26
- [Tooltip("")]
27
- [SerializeField] protected SceneEvent updateDirectTo = null;
28
-
29
- /// <summary>
30
- ///
31
- /// </summary>
32
- [Tooltip("")]
33
- [SerializeField] protected BoolWithEvent fastForwardModeWasEnabled = null;
34
-
35
- /// <summary>
36
- ///
37
- /// </summary>
38
- [Tooltip("")]
39
- [SerializeField] protected string directToNumSaveKey = "DirectToNum";
40
-
41
-
42
- /// <summary>
43
- ///
44
- /// </summary>
45
- protected int saveDirectToNum = 0;
46
-
47
-
48
- protected virtual void OnEnable() => updateDirectTo.RegisterListener(this);
49
-
50
- protected virtual void OnDisable() => updateDirectTo.UnregisterListener(this);
51
-
52
-
53
- /// <inheritdoc/>
54
- public virtual bool EvaluateEndEvent<T>(DialogueBase<T> currentDialogue, Action<DialogueCore[]> interruptDialogue)
55
- where T : Line
56
- => EvaluateDirectTo(currentDialogue, interruptDialogue);
57
-
58
- /// <summary>
59
- ///
60
- /// </summary>
61
- /// <typeparam name="T"></typeparam>
62
- /// <param name="currentDialogue"></param>
63
- /// <param name="interruptDialogue"></param>
64
- /// <returns></returns>
65
- protected virtual bool EvaluateDirectTo<T>(DialogueBase<T> currentDialogue, Action<DialogueCore[]> interruptDialogue)
66
- where T : Line
67
- {
68
- bool isValidDirectTo = currentDialogue.DirectTo != null && currentDialogue.DirectTo.Enabled;
69
-
70
- if (isValidDirectTo)
71
- OnDirectToValid(currentDialogue, interruptDialogue);
72
- else
73
- ResolveFFVariable();
74
-
75
- return isValidDirectTo;
76
- }
77
-
78
-
79
- /// <summary>
80
- ///
81
- /// </summary>
82
- /// <typeparam name="T"></typeparam>
83
- /// <param name="currentDialogue"></param>
84
- /// <param name="interruptDialogue"></param>
85
- protected virtual void OnDirectToValid<T>(DialogueBase<T> currentDialogue, Action<DialogueCore[]> interruptDialogue)
86
- where T : Line
87
- {
88
- DialogueBase<T>[] nextDialogueToBePlayed = new DialogueBase<T>[1];
89
-
90
- nextDialogueToBePlayed[0] = currentDialogue.DirectTo.NewDialogue;
91
-
92
- OnEventRaised();
93
-
94
- fastForwardModeWasEnabled.SetValue(true);
95
-
96
- interruptDialogue(nextDialogueToBePlayed);
97
- }
98
-
99
-
100
- /// <inheritdoc/>
101
- public virtual void Save(Dictionary<string, object> saveData)
102
- {
103
- if (!ServiceLocator.GetService<IDialogueManager>().GetComponentsInChildren<DialogueComponent>().Contains(this))
104
- return;
105
-
106
- saveData.Set(directToNumSaveKey, saveDirectToNum);
107
- }
108
-
109
- /// <inheritdoc/>
110
- public virtual void ClearSaveData() => saveDirectToNum = 0;
111
-
112
- /// <inheritdoc/>
113
- public virtual void Load(Dictionary<string, object> saveDatas) => saveDirectToNum = saveDatas.Get<int>(directToNumSaveKey);
114
-
115
- /// <inheritdoc/>
116
- public virtual void OnEventRaised()
117
- {
118
- if (!ServiceLocator.GetService<IDialogueManager>().GetComponentsInChildren<DialogueComponent>().Contains(this))
119
- return;
120
-
121
- saveDirectToNum++;
122
- }
123
-
124
- /// <inheritdoc/>
125
- public virtual void ToTitleScreen() => ResolveFFVariable();
126
-
127
- /// <summary>
128
- ///
129
- /// </summary>
130
- protected virtual void ResolveFFVariable() => fastForwardModeWasEnabled.SetValue(false);
131
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Dialogues;
3
+ using DREditor.Dialogues.Ending;
4
+ using DREditor.EventObjects;
5
+ using DREditor.Saving;
6
+ using DREditor.Services;
7
+ using System;
8
+ using System.Collections.Generic;
9
+ using System.Linq;
10
+ using UnityEngine;
11
+
12
+ namespace DREditor.EndEvents
13
+ {
14
+ /// <summary>
15
+ ///
16
+ /// </summary>
17
+ [ClassHeader(nameof(DialogueComponent) + ", " + nameof(IDialogueEndEvent) + ", " + nameof(IClearDialogueSaveData) + ", " +
18
+ nameof(IDRESaveable) + ", " + nameof(IDRELoadable) + ", " + nameof(ISceneEventListener) + ", " + nameof(IToTitleScreen) +
19
+ "\n\n")]
20
+ public class DirectToEndEventHandler : DialogueComponent, IDialogueEndEvent, IClearDialogueSaveData,
21
+ IDRESaveable, IDRELoadable, ISceneEventListener, IToTitleScreen
22
+ {
23
+ /// <summary>
24
+ ///
25
+ /// </summary>
26
+ [Tooltip("")]
27
+ [SerializeField] protected SceneEvent updateDirectTo = null;
28
+
29
+ /// <summary>
30
+ ///
31
+ /// </summary>
32
+ [Tooltip("")]
33
+ [SerializeField] protected BoolWithEvent fastForwardModeWasEnabled = null;
34
+
35
+ /// <summary>
36
+ ///
37
+ /// </summary>
38
+ [Tooltip("")]
39
+ [SerializeField] protected string directToNumSaveKey = "DirectToNum";
40
+
41
+
42
+ /// <summary>
43
+ ///
44
+ /// </summary>
45
+ protected int saveDirectToNum = 0;
46
+
47
+
48
+ protected virtual void OnEnable() => updateDirectTo.RegisterListener(this);
49
+
50
+ protected virtual void OnDisable() => updateDirectTo.UnregisterListener(this);
51
+
52
+
53
+ /// <inheritdoc/>
54
+ public virtual bool EvaluateEndEvent<T>(DialogueBase<T> currentDialogue, Action<DialogueCore[]> interruptDialogue)
55
+ where T : Line
56
+ => EvaluateDirectTo(currentDialogue, interruptDialogue);
57
+
58
+ /// <summary>
59
+ ///
60
+ /// </summary>
61
+ /// <typeparam name="T"></typeparam>
62
+ /// <param name="currentDialogue"></param>
63
+ /// <param name="interruptDialogue"></param>
64
+ /// <returns></returns>
65
+ protected virtual bool EvaluateDirectTo<T>(DialogueBase<T> currentDialogue, Action<DialogueCore[]> interruptDialogue)
66
+ where T : Line
67
+ {
68
+ bool isValidDirectTo = currentDialogue.DirectTo != null && currentDialogue.DirectTo.Enabled;
69
+
70
+ if (isValidDirectTo)
71
+ OnDirectToValid(currentDialogue, interruptDialogue);
72
+ else
73
+ ResolveFFVariable();
74
+
75
+ return isValidDirectTo;
76
+ }
77
+
78
+
79
+ /// <summary>
80
+ ///
81
+ /// </summary>
82
+ /// <typeparam name="T"></typeparam>
83
+ /// <param name="currentDialogue"></param>
84
+ /// <param name="interruptDialogue"></param>
85
+ protected virtual void OnDirectToValid<T>(DialogueBase<T> currentDialogue, Action<DialogueCore[]> interruptDialogue)
86
+ where T : Line
87
+ {
88
+ DialogueBase<T>[] nextDialogueToBePlayed = new DialogueBase<T>[1];
89
+
90
+ nextDialogueToBePlayed[0] = currentDialogue.DirectTo.NewDialogue;
91
+
92
+ OnEventRaised();
93
+
94
+ fastForwardModeWasEnabled.SetValue(true);
95
+
96
+ interruptDialogue(nextDialogueToBePlayed);
97
+ }
98
+
99
+
100
+ /// <inheritdoc/>
101
+ public virtual void Save(Dictionary<string, object> saveData)
102
+ {
103
+ if (!ServiceLocator.GetService<IDialogueManager>().GetComponentsInChildren<DialogueComponent>().Contains(this))
104
+ return;
105
+
106
+ saveData.Set(directToNumSaveKey, saveDirectToNum);
107
+ }
108
+
109
+ /// <inheritdoc/>
110
+ public virtual void ClearSaveData() => saveDirectToNum = 0;
111
+
112
+ /// <inheritdoc/>
113
+ public virtual void Load(Dictionary<string, object> saveDatas) => saveDirectToNum = saveDatas.Get<int>(directToNumSaveKey);
114
+
115
+ /// <inheritdoc/>
116
+ public virtual void OnEventRaised()
117
+ {
118
+ if (!ServiceLocator.GetService<IDialogueManager>().GetComponentsInChildren<DialogueComponent>().Contains(this))
119
+ return;
120
+
121
+ saveDirectToNum++;
122
+ }
123
+
124
+ /// <inheritdoc/>
125
+ public virtual void ToTitleScreen() => ResolveFFVariable();
126
+
127
+ /// <summary>
128
+ ///
129
+ /// </summary>
130
+ protected virtual void ResolveFFVariable() => fastForwardModeWasEnabled.SetValue(false);
131
+ }
132
132
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: a63e3725eaa56724e9ef91a1ab14daf3
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: a63e3725eaa56724e9ef91a1ab14daf3
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,31 +1,31 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.Dialogues;
3
- using System;
4
- using UnityEngine;
5
-
6
- namespace DREditor.EndEvents
7
- {
8
- /// <summary>
9
- ///
10
- /// </summary>
11
- public class DirectToTransitionalEndEventHandler : DirectToEndEventHandler
12
- {
13
- /// <summary>
14
- ///
15
- /// </summary>
16
- [Header("")]
17
- [Divider]
18
- [Tooltip("")]
19
- [SerializeField] protected SceneTransitionEndEventHandler SceneTransitionEndEventHandler = null;
20
-
21
-
22
- /// <inheritdoc/>
23
- protected override void OnDirectToValid<T>(DialogueBase<T> currentDialogue, Action<DialogueCore[]> interruptDialogue)
24
- {
25
- base.OnDirectToValid(currentDialogue, interruptDialogue);
26
-
27
- if (currentDialogue.SceneTransition.Enabled && !currentDialogue.SceneTransition.AtEnd)
28
- SceneTransitionEndEventHandler.SetSaveTransitionNum(saveDirectToNum);
29
- }
30
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Dialogues;
3
+ using System;
4
+ using UnityEngine;
5
+
6
+ namespace DREditor.EndEvents
7
+ {
8
+ /// <summary>
9
+ ///
10
+ /// </summary>
11
+ public class DirectToTransitionalEndEventHandler : DirectToEndEventHandler
12
+ {
13
+ /// <summary>
14
+ ///
15
+ /// </summary>
16
+ [Header("")]
17
+ [Divider]
18
+ [Tooltip("")]
19
+ [SerializeField] protected SceneTransitionEndEventHandler SceneTransitionEndEventHandler = null;
20
+
21
+
22
+ /// <inheritdoc/>
23
+ protected override void OnDirectToValid<T>(DialogueBase<T> currentDialogue, Action<DialogueCore[]> interruptDialogue)
24
+ {
25
+ base.OnDirectToValid(currentDialogue, interruptDialogue);
26
+
27
+ if (currentDialogue.SceneTransition.Enabled && !currentDialogue.SceneTransition.AtEnd)
28
+ SceneTransitionEndEventHandler.SetSaveTransitionNum(saveDirectToNum);
29
+ }
30
+ }
31
31
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 214efb8a45c049d4cae64c12b11acb86
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: 214efb8a45c049d4cae64c12b11acb86
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant: