net.dreditor.endevents 0.0.0-stage → 0.1.6
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/CustomCallEndEventHandler.cs +58 -0
- package/CustomCallEndEventHandler.cs.meta +11 -0
- package/DREditor.EndEvents.asmdef +20 -0
- package/DREditor.EndEvents.asmdef.meta +7 -0
- package/DirectToEndEventHandler.cs +132 -0
- package/DirectToEndEventHandler.cs.meta +11 -0
- package/DirectToTransitionalEndEventHandler.cs +31 -0
- package/DirectToTransitionalEndEventHandler.cs.meta +11 -0
- package/MainMenuTransitionEndEventHandler.cs +49 -0
- package/MainMenuTransitionEndEventHandler.cs.meta +11 -0
- package/PauseOptionEndEventHandler.cs +47 -0
- package/PauseOptionEndEventHandler.cs.meta +11 -0
- package/PhaseChangeEndEventHandler.cs +56 -0
- package/PhaseChangeEndEventHandler.cs.meta +11 -0
- package/Samples/Custom_Call_End_Event_Handler.prefab +47 -0
- package/Samples/Custom_Call_End_Event_Handler.prefab.meta +7 -0
- package/Samples/Direct_To_Transitional_End_Event_Handler.prefab +139 -0
- package/Samples/Direct_To_Transitional_End_Event_Handler.prefab.meta +7 -0
- package/Samples/Main_Menu_Transition_End_Event_Handler.prefab +63 -0
- package/Samples/Main_Menu_Transition_End_Event_Handler.prefab.meta +7 -0
- package/Samples/Pause_Option_End_Event_Handler.prefab +48 -0
- package/Samples/Pause_Option_End_Event_Handler.prefab.meta +7 -0
- package/Samples/PhaseChangeEndEventHandler.prefab +48 -0
- package/Samples/PhaseChangeEndEventHandler.prefab.meta +7 -0
- package/Samples/Scene_Transition_End_Event_Handler.prefab +54 -0
- package/Samples/Scene_Transition_End_Event_Handler.prefab.meta +7 -0
- package/Samples/SkipTrialSequences.asset +21 -0
- package/Samples/SkipTrialSequences.asset.meta +8 -0
- package/Samples/Skip_Sequence_End_Event_Handler.prefab +47 -0
- package/Samples/Skip_Sequence_End_Event_Handler.prefab.meta +7 -0
- package/Samples/Trigger_Flag_End_Event_Handler.prefab +46 -0
- package/Samples/Trigger_Flag_End_Event_Handler.prefab.meta +7 -0
- package/Samples/UpdateDirectTo.asset +15 -0
- package/Samples/UpdateDirectTo.asset.meta +8 -0
- package/Samples/Variable_End_Event_Handler.prefab +49 -0
- package/Samples/Variable_End_Event_Handler.prefab.meta +7 -0
- package/Samples.meta +8 -0
- package/SceneTransitionEndEventHandler.cs +170 -0
- package/SceneTransitionEndEventHandler.cs.meta +11 -0
- package/SkipSequenceEndEventHandler.cs +36 -0
- package/SkipSequenceEndEventHandler.cs.meta +11 -0
- package/TriggerFlagEndEventHandler.cs +42 -0
- package/TriggerFlagEndEventHandler.cs.meta +11 -0
- package/VariableEndEventHandler.cs +112 -0
- package/VariableEndEventHandler.cs.meta +11 -0
- package/package.json +38 -6
- package/package.json.meta +7 -0
- package/README.md +0 -3
|
@@ -0,0 +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
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +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
|
|
20
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
132
|
+
}
|
|
@@ -0,0 +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
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.Services;
|
|
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 MainMenuTransitionEndEventHandler : DialogueComponent, IDialogueEndEvent
|
|
17
|
+
{
|
|
18
|
+
/// <summary>
|
|
19
|
+
///
|
|
20
|
+
/// </summary>
|
|
21
|
+
[Tooltip("")]
|
|
22
|
+
[SerializeField] protected SceneEvent cleanUpDialogueReader = null;
|
|
23
|
+
|
|
24
|
+
/// <summary>
|
|
25
|
+
///
|
|
26
|
+
/// </summary>
|
|
27
|
+
[Tooltip("")]
|
|
28
|
+
[SerializeField] protected ReturnToMenuHandler ReturnToMenuHandler = null;
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/// <inheritdoc/>
|
|
32
|
+
public virtual bool EvaluateEndEvent<T>(DialogueBase<T> dialogue, Action<DialogueCore[]> interruptDialogue)
|
|
33
|
+
where T : Line
|
|
34
|
+
{
|
|
35
|
+
if (dialogue is Dialogue currentDialogue &&
|
|
36
|
+
currentDialogue.SceneTransition.Enabled &&
|
|
37
|
+
currentDialogue.SceneTransition.ToMenu)
|
|
38
|
+
{
|
|
39
|
+
cleanUpDialogueReader.Raise();
|
|
40
|
+
|
|
41
|
+
ReturnToMenuHandler.ReturnToMenu(currentDialogue.SceneTransition.Scene);
|
|
42
|
+
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.UI.Menus;
|
|
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 PauseOptionEndEventHandler : DialogueComponent, IDialogueEndEvent
|
|
17
|
+
{
|
|
18
|
+
/// <summary>
|
|
19
|
+
///
|
|
20
|
+
/// </summary>
|
|
21
|
+
[Tooltip("")]
|
|
22
|
+
[SerializeField] protected BoolWithEvent pauseAccess = null;
|
|
23
|
+
|
|
24
|
+
/// <summary>
|
|
25
|
+
///
|
|
26
|
+
/// </summary>
|
|
27
|
+
[Tooltip("")]
|
|
28
|
+
[SerializeField] protected PauseOptionData pauseData = null;
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/// <inheritdoc/>
|
|
32
|
+
public virtual bool EvaluateEndEvent<T>(DialogueBase<T> currentDialogue, Action<DialogueCore[]> interruptDialogue)
|
|
33
|
+
where T : Line
|
|
34
|
+
{
|
|
35
|
+
if (currentDialogue is Dialogue dialogue && (dialogue.UnlockPause || dialogue.UnlockPauseOption))
|
|
36
|
+
{
|
|
37
|
+
if (dialogue.UnlockPause)
|
|
38
|
+
pauseAccess.SetValue(true);
|
|
39
|
+
|
|
40
|
+
if (dialogue.UnlockPauseOption)
|
|
41
|
+
pauseData.pauseOptions[dialogue.PauseOptionNum] = true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 System;
|
|
6
|
+
using UnityEngine;
|
|
7
|
+
|
|
8
|
+
namespace DREditor.EndEvents
|
|
9
|
+
{
|
|
10
|
+
/// <summary>
|
|
11
|
+
///
|
|
12
|
+
/// </summary>
|
|
13
|
+
[ClassHeader(nameof(DialogueComponent) + ", " + nameof(IDialogueEndEvent) + ", " + nameof(IPhaseChangeEvent<StartInvestigation>) +
|
|
14
|
+
"\n\n")]
|
|
15
|
+
public class PhaseChangeEndEventHandler : DialogueComponent, IDialogueEndEvent, IPhaseChangeEvent<StartInvestigation>
|
|
16
|
+
{
|
|
17
|
+
/// <summary>
|
|
18
|
+
///
|
|
19
|
+
/// </summary>
|
|
20
|
+
[Tooltip("")]
|
|
21
|
+
[SerializeField] protected SceneEvent cleanUpDialogueReader = null;
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
public event Action<StartInvestigation> PhaseChanged;
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
/// <inheritdoc/>
|
|
28
|
+
public virtual bool EvaluateEndEvent<T>(DialogueBase<T> currentDialogue, Action<DialogueCore[]> interruptDialogue)
|
|
29
|
+
where T : Line
|
|
30
|
+
=> EvaluateEndPhaseChangeEvent(currentDialogue);
|
|
31
|
+
|
|
32
|
+
/// <summary>
|
|
33
|
+
///
|
|
34
|
+
/// </summary>
|
|
35
|
+
/// <typeparam name="T"></typeparam>
|
|
36
|
+
/// <param name="dialogue"></param>
|
|
37
|
+
/// <returns></returns>
|
|
38
|
+
protected virtual bool EvaluateEndPhaseChangeEvent<T>(DialogueBase<T> dialogue)
|
|
39
|
+
where T : Line
|
|
40
|
+
{
|
|
41
|
+
if (dialogue is Dialogue currentDialogue && currentDialogue != null)
|
|
42
|
+
{
|
|
43
|
+
if (currentDialogue.StartInvestigation.Enabled)
|
|
44
|
+
{
|
|
45
|
+
cleanUpDialogueReader.Raise();
|
|
46
|
+
|
|
47
|
+
PhaseChanged?.Invoke(currentDialogue.StartInvestigation);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return currentDialogue.StartInvestigation.Enabled;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
%YAML 1.1
|
|
2
|
+
%TAG !u! tag:unity3d.com,2011:
|
|
3
|
+
--- !u!1 &5256772734665627556
|
|
4
|
+
GameObject:
|
|
5
|
+
m_ObjectHideFlags: 0
|
|
6
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
7
|
+
m_PrefabInstance: {fileID: 0}
|
|
8
|
+
m_PrefabAsset: {fileID: 0}
|
|
9
|
+
serializedVersion: 6
|
|
10
|
+
m_Component:
|
|
11
|
+
- component: {fileID: 5256772734665627557}
|
|
12
|
+
- component: {fileID: 5256772734665627558}
|
|
13
|
+
m_Layer: 0
|
|
14
|
+
m_Name: Custom_Call_End_Event_Handler
|
|
15
|
+
m_TagString: Untagged
|
|
16
|
+
m_Icon: {fileID: 0}
|
|
17
|
+
m_NavMeshLayer: 0
|
|
18
|
+
m_StaticEditorFlags: 0
|
|
19
|
+
m_IsActive: 1
|
|
20
|
+
--- !u!4 &5256772734665627557
|
|
21
|
+
Transform:
|
|
22
|
+
m_ObjectHideFlags: 0
|
|
23
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
24
|
+
m_PrefabInstance: {fileID: 0}
|
|
25
|
+
m_PrefabAsset: {fileID: 0}
|
|
26
|
+
m_GameObject: {fileID: 5256772734665627556}
|
|
27
|
+
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
|
28
|
+
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
29
|
+
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
30
|
+
m_ConstrainProportionsScale: 0
|
|
31
|
+
m_Children: []
|
|
32
|
+
m_Father: {fileID: 0}
|
|
33
|
+
m_RootOrder: 0
|
|
34
|
+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
35
|
+
--- !u!114 &5256772734665627558
|
|
36
|
+
MonoBehaviour:
|
|
37
|
+
m_ObjectHideFlags: 0
|
|
38
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
39
|
+
m_PrefabInstance: {fileID: 0}
|
|
40
|
+
m_PrefabAsset: {fileID: 0}
|
|
41
|
+
m_GameObject: {fileID: 5256772734665627556}
|
|
42
|
+
m_Enabled: 1
|
|
43
|
+
m_EditorHideFlags: 0
|
|
44
|
+
m_Script: {fileID: 11500000, guid: eed47917d358b524996353f5fcb8a383, type: 3}
|
|
45
|
+
m_Name:
|
|
46
|
+
m_EditorClassIdentifier:
|
|
47
|
+
isLeaving: {fileID: 11400000, guid: 6476014b37bc7ed44aea40908531e07e, type: 2}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
%YAML 1.1
|
|
2
|
+
%TAG !u! tag:unity3d.com,2011:
|
|
3
|
+
--- !u!1 &6656288540658294440
|
|
4
|
+
GameObject:
|
|
5
|
+
m_ObjectHideFlags: 0
|
|
6
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
7
|
+
m_PrefabInstance: {fileID: 0}
|
|
8
|
+
m_PrefabAsset: {fileID: 0}
|
|
9
|
+
serializedVersion: 6
|
|
10
|
+
m_Component:
|
|
11
|
+
- component: {fileID: 6656288540658294441}
|
|
12
|
+
- component: {fileID: 6656288540658294446}
|
|
13
|
+
m_Layer: 0
|
|
14
|
+
m_Name: Direct_To_Transitional_End_Event_Handler
|
|
15
|
+
m_TagString: Untagged
|
|
16
|
+
m_Icon: {fileID: 0}
|
|
17
|
+
m_NavMeshLayer: 0
|
|
18
|
+
m_StaticEditorFlags: 0
|
|
19
|
+
m_IsActive: 1
|
|
20
|
+
--- !u!4 &6656288540658294441
|
|
21
|
+
Transform:
|
|
22
|
+
m_ObjectHideFlags: 0
|
|
23
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
24
|
+
m_PrefabInstance: {fileID: 0}
|
|
25
|
+
m_PrefabAsset: {fileID: 0}
|
|
26
|
+
m_GameObject: {fileID: 6656288540658294440}
|
|
27
|
+
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
|
28
|
+
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
29
|
+
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
30
|
+
m_ConstrainProportionsScale: 0
|
|
31
|
+
m_Children:
|
|
32
|
+
- {fileID: 6656288541532271712}
|
|
33
|
+
m_Father: {fileID: 0}
|
|
34
|
+
m_RootOrder: 0
|
|
35
|
+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
36
|
+
--- !u!114 &6656288540658294446
|
|
37
|
+
MonoBehaviour:
|
|
38
|
+
m_ObjectHideFlags: 0
|
|
39
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
40
|
+
m_PrefabInstance: {fileID: 0}
|
|
41
|
+
m_PrefabAsset: {fileID: 0}
|
|
42
|
+
m_GameObject: {fileID: 6656288540658294440}
|
|
43
|
+
m_Enabled: 1
|
|
44
|
+
m_EditorHideFlags: 0
|
|
45
|
+
m_Script: {fileID: 11500000, guid: 214efb8a45c049d4cae64c12b11acb86, type: 3}
|
|
46
|
+
m_Name:
|
|
47
|
+
m_EditorClassIdentifier:
|
|
48
|
+
updateDirectTo: {fileID: 11400000, guid: 4d1c9c62acfbe064cbe14a57e7648151, type: 2}
|
|
49
|
+
fastForwardModeWasEnabled: {fileID: 11400000, guid: e47492541d805c34ba7e2b69d64e742f,
|
|
50
|
+
type: 2}
|
|
51
|
+
directToNumSaveKey: DirectToNum
|
|
52
|
+
SceneTransitionEndEventHandler: {fileID: 6656288541532271713}
|
|
53
|
+
--- !u!1001 &8496042891915698746
|
|
54
|
+
PrefabInstance:
|
|
55
|
+
m_ObjectHideFlags: 0
|
|
56
|
+
serializedVersion: 2
|
|
57
|
+
m_Modification:
|
|
58
|
+
m_TransformParent: {fileID: 6656288540658294441}
|
|
59
|
+
m_Modifications:
|
|
60
|
+
- target: {fileID: 3006120686949668441, guid: f18144f8622d815498240b49c2dfe19a,
|
|
61
|
+
type: 3}
|
|
62
|
+
propertyPath: m_Name
|
|
63
|
+
value: Scene_Transition_End_Event_Handler
|
|
64
|
+
objectReference: {fileID: 0}
|
|
65
|
+
- target: {fileID: 3006120686949668442, guid: f18144f8622d815498240b49c2dfe19a,
|
|
66
|
+
type: 3}
|
|
67
|
+
propertyPath: m_RootOrder
|
|
68
|
+
value: 0
|
|
69
|
+
objectReference: {fileID: 0}
|
|
70
|
+
- target: {fileID: 3006120686949668442, guid: f18144f8622d815498240b49c2dfe19a,
|
|
71
|
+
type: 3}
|
|
72
|
+
propertyPath: m_LocalPosition.x
|
|
73
|
+
value: 0
|
|
74
|
+
objectReference: {fileID: 0}
|
|
75
|
+
- target: {fileID: 3006120686949668442, guid: f18144f8622d815498240b49c2dfe19a,
|
|
76
|
+
type: 3}
|
|
77
|
+
propertyPath: m_LocalPosition.y
|
|
78
|
+
value: 0
|
|
79
|
+
objectReference: {fileID: 0}
|
|
80
|
+
- target: {fileID: 3006120686949668442, guid: f18144f8622d815498240b49c2dfe19a,
|
|
81
|
+
type: 3}
|
|
82
|
+
propertyPath: m_LocalPosition.z
|
|
83
|
+
value: 0
|
|
84
|
+
objectReference: {fileID: 0}
|
|
85
|
+
- target: {fileID: 3006120686949668442, guid: f18144f8622d815498240b49c2dfe19a,
|
|
86
|
+
type: 3}
|
|
87
|
+
propertyPath: m_LocalRotation.w
|
|
88
|
+
value: 1
|
|
89
|
+
objectReference: {fileID: 0}
|
|
90
|
+
- target: {fileID: 3006120686949668442, guid: f18144f8622d815498240b49c2dfe19a,
|
|
91
|
+
type: 3}
|
|
92
|
+
propertyPath: m_LocalRotation.x
|
|
93
|
+
value: -0
|
|
94
|
+
objectReference: {fileID: 0}
|
|
95
|
+
- target: {fileID: 3006120686949668442, guid: f18144f8622d815498240b49c2dfe19a,
|
|
96
|
+
type: 3}
|
|
97
|
+
propertyPath: m_LocalRotation.y
|
|
98
|
+
value: -0
|
|
99
|
+
objectReference: {fileID: 0}
|
|
100
|
+
- target: {fileID: 3006120686949668442, guid: f18144f8622d815498240b49c2dfe19a,
|
|
101
|
+
type: 3}
|
|
102
|
+
propertyPath: m_LocalRotation.z
|
|
103
|
+
value: -0
|
|
104
|
+
objectReference: {fileID: 0}
|
|
105
|
+
- target: {fileID: 3006120686949668442, guid: f18144f8622d815498240b49c2dfe19a,
|
|
106
|
+
type: 3}
|
|
107
|
+
propertyPath: m_LocalEulerAnglesHint.x
|
|
108
|
+
value: 0
|
|
109
|
+
objectReference: {fileID: 0}
|
|
110
|
+
- target: {fileID: 3006120686949668442, guid: f18144f8622d815498240b49c2dfe19a,
|
|
111
|
+
type: 3}
|
|
112
|
+
propertyPath: m_LocalEulerAnglesHint.y
|
|
113
|
+
value: 0
|
|
114
|
+
objectReference: {fileID: 0}
|
|
115
|
+
- target: {fileID: 3006120686949668442, guid: f18144f8622d815498240b49c2dfe19a,
|
|
116
|
+
type: 3}
|
|
117
|
+
propertyPath: m_LocalEulerAnglesHint.z
|
|
118
|
+
value: 0
|
|
119
|
+
objectReference: {fileID: 0}
|
|
120
|
+
m_RemovedComponents: []
|
|
121
|
+
m_SourcePrefab: {fileID: 100100000, guid: f18144f8622d815498240b49c2dfe19a, type: 3}
|
|
122
|
+
--- !u!4 &6656288541532271712 stripped
|
|
123
|
+
Transform:
|
|
124
|
+
m_CorrespondingSourceObject: {fileID: 3006120686949668442, guid: f18144f8622d815498240b49c2dfe19a,
|
|
125
|
+
type: 3}
|
|
126
|
+
m_PrefabInstance: {fileID: 8496042891915698746}
|
|
127
|
+
m_PrefabAsset: {fileID: 0}
|
|
128
|
+
--- !u!114 &6656288541532271713 stripped
|
|
129
|
+
MonoBehaviour:
|
|
130
|
+
m_CorrespondingSourceObject: {fileID: 3006120686949668443, guid: f18144f8622d815498240b49c2dfe19a,
|
|
131
|
+
type: 3}
|
|
132
|
+
m_PrefabInstance: {fileID: 8496042891915698746}
|
|
133
|
+
m_PrefabAsset: {fileID: 0}
|
|
134
|
+
m_GameObject: {fileID: 0}
|
|
135
|
+
m_Enabled: 1
|
|
136
|
+
m_EditorHideFlags: 0
|
|
137
|
+
m_Script: {fileID: 11500000, guid: 554a4fa30d95ec84d92de4e1ecfbc872, type: 3}
|
|
138
|
+
m_Name:
|
|
139
|
+
m_EditorClassIdentifier:
|