net.dreditor.eventobjectservices 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.
- package/.attestation.p7m +0 -0
- package/BoolWithEventOnTitleScreen.cs +9 -9
- package/BoolWithEventOnTitleScreen.cs.meta +11 -11
- package/DREditor.EventObjectServices.asmdef +16 -16
- package/DREditor.EventObjectServices.asmdef.meta +7 -7
- package/EvaluateCamerasStates.cs +102 -102
- package/EvaluateCamerasStates.cs.meta +11 -11
- package/FloatWithEventListener.cs +9 -9
- package/FloatWithEventListener.cs.meta +11 -11
- package/FloatWithEventOnTitleScreen.cs +9 -9
- package/FloatWithEventOnTitleScreen.cs.meta +11 -11
- package/IntWithEventIndexListener.cs +24 -24
- package/IntWithEventIndexListener.cs.meta +11 -11
- package/IntWithEventListener.cs +9 -9
- package/IntWithEventListener.cs.meta +11 -11
- package/IntWithEventOnTitleScreen.cs +9 -9
- package/IntWithEventOnTitleScreen.cs.meta +11 -11
- package/InverseObjectStateBoolWithEvent.cs +49 -49
- package/InverseObjectStateBoolWithEvent.cs.meta +11 -11
- package/ObjectActiveOnChapterIndex.cs +83 -83
- package/ObjectActiveOnChapterIndex.cs.meta +11 -11
- package/ObjectNameDisplayer.cs +46 -46
- package/ObjectNameDisplayer.cs.meta +11 -11
- package/OptionWithEventListener.cs +56 -56
- package/OptionWithEventListener.cs.meta +11 -11
- package/ResetCharacterControllerOnEvent.cs +46 -46
- package/ResetCharacterControllerOnEvent.cs.meta +11 -11
- package/{Samples → Samples~}/Float_With_Event_On_Title_Screen.prefab +48 -48
- package/{Samples → Samples~}/Float_With_Event_On_Title_Screen.prefab.meta +7 -7
- package/{Samples → Samples~}/Int_With_Event_On_Title_Screen.prefab +48 -48
- package/{Samples → Samples~}/Int_With_Event_On_Title_Screen.prefab.meta +7 -7
- package/{Samples → Samples~}/Reset_Player.prefab +118 -118
- package/{Samples → Samples~}/Reset_Player.prefab.meta +7 -7
- package/{Samples → Samples~}/Selectable_Object_Manager.prefab +49 -49
- package/{Samples → Samples~}/Selectable_Object_Manager.prefab.meta +7 -7
- package/SceneEventOnStart.cs +26 -26
- package/SceneEventOnStart.cs.meta +11 -11
- package/SelectStringWithEvent.cs +43 -43
- package/SelectStringWithEvent.cs.meta +11 -11
- package/SelectableObjectManager.cs +44 -44
- package/SelectableObjectManager.cs.meta +11 -11
- package/SpriteOnIntEvent.cs +67 -67
- package/SpriteOnIntEvent.cs.meta +11 -11
- package/StringWithEventListener.cs +9 -9
- package/StringWithEventListener.cs.meta +11 -11
- package/TextWithEventListener.cs +45 -45
- package/TextWithEventListener.cs.meta +11 -11
- package/ValueWithEventListener.cs +59 -59
- package/ValueWithEventListener.cs.meta +11 -11
- package/ValueWithEventOnTitleScreen.cs +36 -36
- package/ValueWithEventOnTitleScreen.cs.meta +11 -11
- package/package.json +41 -36
- package/package.json.meta +7 -0
- package/Samples.meta +0 -8
package/.attestation.p7m
ADDED
|
Binary file
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.EventObjects;
|
|
3
|
-
|
|
4
|
-
namespace DREditor.EventObjectServices
|
|
5
|
-
{
|
|
6
|
-
/// <summary>
|
|
7
|
-
///
|
|
8
|
-
/// </summary>
|
|
9
|
-
public class BoolWithEventOnTitleScreen : ValueWithEventOnTitleScreen<bool, BoolEvent> { }
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.EventObjects;
|
|
3
|
+
|
|
4
|
+
namespace DREditor.EventObjectServices
|
|
5
|
+
{
|
|
6
|
+
/// <summary>
|
|
7
|
+
///
|
|
8
|
+
/// </summary>
|
|
9
|
+
public class BoolWithEventOnTitleScreen : ValueWithEventOnTitleScreen<bool, BoolEvent> { }
|
|
10
10
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: db5844c8a9f9b854e8ad7c6c0248de87
|
|
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: db5844c8a9f9b854e8ad7c6c0248de87
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "DREditor.EventObjectServices",
|
|
3
|
-
"rootNamespace": "",
|
|
4
|
-
"references": [
|
|
5
|
-
"DREditor",
|
|
6
|
-
"Unity.TextMeshPro"
|
|
7
|
-
],
|
|
8
|
-
"includePlatforms": [],
|
|
9
|
-
"excludePlatforms": [],
|
|
10
|
-
"allowUnsafeCode": false,
|
|
11
|
-
"overrideReferences": false,
|
|
12
|
-
"precompiledReferences": [],
|
|
13
|
-
"autoReferenced": true,
|
|
14
|
-
"defineConstraints": [],
|
|
15
|
-
"versionDefines": [],
|
|
16
|
-
"noEngineReferences": false
|
|
1
|
+
{
|
|
2
|
+
"name": "DREditor.EventObjectServices",
|
|
3
|
+
"rootNamespace": "",
|
|
4
|
+
"references": [
|
|
5
|
+
"DREditor",
|
|
6
|
+
"Unity.TextMeshPro"
|
|
7
|
+
],
|
|
8
|
+
"includePlatforms": [],
|
|
9
|
+
"excludePlatforms": [],
|
|
10
|
+
"allowUnsafeCode": false,
|
|
11
|
+
"overrideReferences": false,
|
|
12
|
+
"precompiledReferences": [],
|
|
13
|
+
"autoReferenced": true,
|
|
14
|
+
"defineConstraints": [],
|
|
15
|
+
"versionDefines": [],
|
|
16
|
+
"noEngineReferences": false
|
|
17
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 95c6a2a7b0ff1224babbd19fa47b94e8
|
|
3
|
-
AssemblyDefinitionImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
userData:
|
|
6
|
-
assetBundleName:
|
|
7
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 95c6a2a7b0ff1224babbd19fa47b94e8
|
|
3
|
+
AssemblyDefinitionImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
userData:
|
|
6
|
+
assetBundleName:
|
|
7
|
+
assetBundleVariant:
|
package/EvaluateCamerasStates.cs
CHANGED
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.EventObjects;
|
|
3
|
-
using System.Collections.Generic;
|
|
4
|
-
using UnityEngine;
|
|
5
|
-
|
|
6
|
-
namespace DREditor.EventObjectServices
|
|
7
|
-
{
|
|
8
|
-
/// <summary>
|
|
9
|
-
///
|
|
10
|
-
/// </summary>
|
|
11
|
-
[ClassHeader("")]
|
|
12
|
-
public class EvaluateCamerasStates : MonoBehaviour
|
|
13
|
-
{
|
|
14
|
-
/// <summary>
|
|
15
|
-
///
|
|
16
|
-
/// </summary>
|
|
17
|
-
[Tooltip("")]
|
|
18
|
-
[SerializeField] protected BoolWithEvent inTrialMode = null;
|
|
19
|
-
|
|
20
|
-
/// <summary>
|
|
21
|
-
///
|
|
22
|
-
/// </summary>
|
|
23
|
-
[Tooltip("")]
|
|
24
|
-
[SerializeField] protected BoolWithEvent inCGMode = null;
|
|
25
|
-
|
|
26
|
-
/// <summary>
|
|
27
|
-
///
|
|
28
|
-
/// </summary>
|
|
29
|
-
[Tooltip("")]
|
|
30
|
-
[SerializeField] protected BoolWithEvent inVideoMode = null;
|
|
31
|
-
|
|
32
|
-
/// <summary>
|
|
33
|
-
///
|
|
34
|
-
/// </summary>
|
|
35
|
-
[Tooltip("")]
|
|
36
|
-
[SerializeField] protected List<BoolWithEvent> cameras = new();
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
/// <summary>
|
|
40
|
-
///
|
|
41
|
-
/// </summary>
|
|
42
|
-
protected virtual void Start() => StartListeningToEvents();
|
|
43
|
-
|
|
44
|
-
/// <summary>
|
|
45
|
-
///
|
|
46
|
-
/// </summary>
|
|
47
|
-
protected virtual void StartListeningToEvents()
|
|
48
|
-
{
|
|
49
|
-
inTrialMode.AddListener(EvaluateInTrialState);
|
|
50
|
-
|
|
51
|
-
inCGMode.AddListener(EvaluateInCGState);
|
|
52
|
-
|
|
53
|
-
inVideoMode.AddListener(EvaluateInCGState);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/// <summary>
|
|
57
|
-
///
|
|
58
|
-
/// </summary>
|
|
59
|
-
protected virtual void OnDisable() => StopListeningToEvents();
|
|
60
|
-
|
|
61
|
-
/// <summary>
|
|
62
|
-
///
|
|
63
|
-
/// </summary>
|
|
64
|
-
protected virtual void StopListeningToEvents()
|
|
65
|
-
{
|
|
66
|
-
inTrialMode.RemoveListener(EvaluateInTrialState);
|
|
67
|
-
|
|
68
|
-
inCGMode.RemoveListener(EvaluateInCGState);
|
|
69
|
-
|
|
70
|
-
inVideoMode.RemoveListener(EvaluateInCGState);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/// <summary>
|
|
74
|
-
///
|
|
75
|
-
/// </summary>
|
|
76
|
-
/// <param name="inTrial"></param>
|
|
77
|
-
protected virtual void EvaluateInTrialState(bool inTrial) => EnableCamerasTo(!inTrial);
|
|
78
|
-
|
|
79
|
-
/// <summary>
|
|
80
|
-
///
|
|
81
|
-
/// </summary>
|
|
82
|
-
/// <param name="inCG"></param>
|
|
83
|
-
protected virtual void EvaluateInCGState(bool inCG)
|
|
84
|
-
{
|
|
85
|
-
if (!inTrialMode.Value)
|
|
86
|
-
EnableCamerasTo(!inCG);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/// <summary>
|
|
90
|
-
///
|
|
91
|
-
/// </summary>
|
|
92
|
-
/// <param name="to"></param>
|
|
93
|
-
protected virtual void EnableCamerasTo(bool to)
|
|
94
|
-
{
|
|
95
|
-
foreach (BoolWithEvent camera in cameras)
|
|
96
|
-
if (camera != null)
|
|
97
|
-
camera.SetValue(to);
|
|
98
|
-
else
|
|
99
|
-
UnityEngine.Debug.Log($"{ToString()}: Canvases and Cameras states were not changed because " +
|
|
100
|
-
"a dialogue camera has not been found.");
|
|
101
|
-
}
|
|
102
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.EventObjects;
|
|
3
|
+
using System.Collections.Generic;
|
|
4
|
+
using UnityEngine;
|
|
5
|
+
|
|
6
|
+
namespace DREditor.EventObjectServices
|
|
7
|
+
{
|
|
8
|
+
/// <summary>
|
|
9
|
+
///
|
|
10
|
+
/// </summary>
|
|
11
|
+
[ClassHeader("")]
|
|
12
|
+
public class EvaluateCamerasStates : MonoBehaviour
|
|
13
|
+
{
|
|
14
|
+
/// <summary>
|
|
15
|
+
///
|
|
16
|
+
/// </summary>
|
|
17
|
+
[Tooltip("")]
|
|
18
|
+
[SerializeField] protected BoolWithEvent inTrialMode = null;
|
|
19
|
+
|
|
20
|
+
/// <summary>
|
|
21
|
+
///
|
|
22
|
+
/// </summary>
|
|
23
|
+
[Tooltip("")]
|
|
24
|
+
[SerializeField] protected BoolWithEvent inCGMode = null;
|
|
25
|
+
|
|
26
|
+
/// <summary>
|
|
27
|
+
///
|
|
28
|
+
/// </summary>
|
|
29
|
+
[Tooltip("")]
|
|
30
|
+
[SerializeField] protected BoolWithEvent inVideoMode = null;
|
|
31
|
+
|
|
32
|
+
/// <summary>
|
|
33
|
+
///
|
|
34
|
+
/// </summary>
|
|
35
|
+
[Tooltip("")]
|
|
36
|
+
[SerializeField] protected List<BoolWithEvent> cameras = new();
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
/// <summary>
|
|
40
|
+
///
|
|
41
|
+
/// </summary>
|
|
42
|
+
protected virtual void Start() => StartListeningToEvents();
|
|
43
|
+
|
|
44
|
+
/// <summary>
|
|
45
|
+
///
|
|
46
|
+
/// </summary>
|
|
47
|
+
protected virtual void StartListeningToEvents()
|
|
48
|
+
{
|
|
49
|
+
inTrialMode.AddListener(EvaluateInTrialState);
|
|
50
|
+
|
|
51
|
+
inCGMode.AddListener(EvaluateInCGState);
|
|
52
|
+
|
|
53
|
+
inVideoMode.AddListener(EvaluateInCGState);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/// <summary>
|
|
57
|
+
///
|
|
58
|
+
/// </summary>
|
|
59
|
+
protected virtual void OnDisable() => StopListeningToEvents();
|
|
60
|
+
|
|
61
|
+
/// <summary>
|
|
62
|
+
///
|
|
63
|
+
/// </summary>
|
|
64
|
+
protected virtual void StopListeningToEvents()
|
|
65
|
+
{
|
|
66
|
+
inTrialMode.RemoveListener(EvaluateInTrialState);
|
|
67
|
+
|
|
68
|
+
inCGMode.RemoveListener(EvaluateInCGState);
|
|
69
|
+
|
|
70
|
+
inVideoMode.RemoveListener(EvaluateInCGState);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/// <summary>
|
|
74
|
+
///
|
|
75
|
+
/// </summary>
|
|
76
|
+
/// <param name="inTrial"></param>
|
|
77
|
+
protected virtual void EvaluateInTrialState(bool inTrial) => EnableCamerasTo(!inTrial);
|
|
78
|
+
|
|
79
|
+
/// <summary>
|
|
80
|
+
///
|
|
81
|
+
/// </summary>
|
|
82
|
+
/// <param name="inCG"></param>
|
|
83
|
+
protected virtual void EvaluateInCGState(bool inCG)
|
|
84
|
+
{
|
|
85
|
+
if (!inTrialMode.Value)
|
|
86
|
+
EnableCamerasTo(!inCG);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/// <summary>
|
|
90
|
+
///
|
|
91
|
+
/// </summary>
|
|
92
|
+
/// <param name="to"></param>
|
|
93
|
+
protected virtual void EnableCamerasTo(bool to)
|
|
94
|
+
{
|
|
95
|
+
foreach (BoolWithEvent camera in cameras)
|
|
96
|
+
if (camera != null)
|
|
97
|
+
camera.SetValue(to);
|
|
98
|
+
else
|
|
99
|
+
UnityEngine.Debug.Log($"{ToString()}: Canvases and Cameras states were not changed because " +
|
|
100
|
+
"a dialogue camera has not been found.");
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
103
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: ca23dba077d9f344bb165ec6dc377c27
|
|
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: ca23dba077d9f344bb165ec6dc377c27
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.EventObjects;
|
|
3
|
-
|
|
4
|
-
namespace DREditor.EventObjectServices
|
|
5
|
-
{
|
|
6
|
-
/// <summary>
|
|
7
|
-
///
|
|
8
|
-
/// </summary>
|
|
9
|
-
public class FloatWithEventListener : ValueWithEventListener<FloatWithEvent, float, FloatEvent> { }
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.EventObjects;
|
|
3
|
+
|
|
4
|
+
namespace DREditor.EventObjectServices
|
|
5
|
+
{
|
|
6
|
+
/// <summary>
|
|
7
|
+
///
|
|
8
|
+
/// </summary>
|
|
9
|
+
public class FloatWithEventListener : ValueWithEventListener<FloatWithEvent, float, FloatEvent> { }
|
|
10
10
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 5c4b96edb4e5ff545ad287bdc200f777
|
|
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: 5c4b96edb4e5ff545ad287bdc200f777
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.EventObjects;
|
|
3
|
-
|
|
4
|
-
namespace DREditor.EventObjectServices
|
|
5
|
-
{
|
|
6
|
-
/// <summary>
|
|
7
|
-
///
|
|
8
|
-
/// </summary>
|
|
9
|
-
public class FloatWithEventOnTitleScreen : ValueWithEventOnTitleScreen<float, FloatEvent> { }
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.EventObjects;
|
|
3
|
+
|
|
4
|
+
namespace DREditor.EventObjectServices
|
|
5
|
+
{
|
|
6
|
+
/// <summary>
|
|
7
|
+
///
|
|
8
|
+
/// </summary>
|
|
9
|
+
public class FloatWithEventOnTitleScreen : ValueWithEventOnTitleScreen<float, FloatEvent> { }
|
|
10
10
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 164f5339acd8f69479293b15d23255e3
|
|
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: 164f5339acd8f69479293b15d23255e3
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using UnityEngine;
|
|
3
|
-
|
|
4
|
-
namespace DREditor.EventObjectServices
|
|
5
|
-
{
|
|
6
|
-
/// <summary>
|
|
7
|
-
///
|
|
8
|
-
/// </summary>
|
|
9
|
-
[ClassHeader("")]
|
|
10
|
-
public class IntWithEventIndexListener : IntWithEventListener
|
|
11
|
-
{
|
|
12
|
-
/// <summary>
|
|
13
|
-
///
|
|
14
|
-
/// </summary>
|
|
15
|
-
[Tooltip("")]
|
|
16
|
-
[SerializeField] protected int index = 0;
|
|
17
|
-
|
|
18
|
-
/// <inheritdoc/>
|
|
19
|
-
protected override void OnValueChanged(int updatedValue)
|
|
20
|
-
{
|
|
21
|
-
if (updatedValue == index)
|
|
22
|
-
base.OnValueChanged(updatedValue);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using UnityEngine;
|
|
3
|
+
|
|
4
|
+
namespace DREditor.EventObjectServices
|
|
5
|
+
{
|
|
6
|
+
/// <summary>
|
|
7
|
+
///
|
|
8
|
+
/// </summary>
|
|
9
|
+
[ClassHeader("")]
|
|
10
|
+
public class IntWithEventIndexListener : IntWithEventListener
|
|
11
|
+
{
|
|
12
|
+
/// <summary>
|
|
13
|
+
///
|
|
14
|
+
/// </summary>
|
|
15
|
+
[Tooltip("")]
|
|
16
|
+
[SerializeField] protected int index = 0;
|
|
17
|
+
|
|
18
|
+
/// <inheritdoc/>
|
|
19
|
+
protected override void OnValueChanged(int updatedValue)
|
|
20
|
+
{
|
|
21
|
+
if (updatedValue == index)
|
|
22
|
+
base.OnValueChanged(updatedValue);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
25
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: a49fae9bdc4131f44a1b2d9d89a20e56
|
|
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: a49fae9bdc4131f44a1b2d9d89a20e56
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
package/IntWithEventListener.cs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.EventObjects;
|
|
3
|
-
|
|
4
|
-
namespace DREditor.EventObjectServices
|
|
5
|
-
{
|
|
6
|
-
/// <summary>
|
|
7
|
-
///
|
|
8
|
-
/// </summary>
|
|
9
|
-
public class IntWithEventListener : ValueWithEventListener<IntWithEvent, int, IntEvent> { }
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.EventObjects;
|
|
3
|
+
|
|
4
|
+
namespace DREditor.EventObjectServices
|
|
5
|
+
{
|
|
6
|
+
/// <summary>
|
|
7
|
+
///
|
|
8
|
+
/// </summary>
|
|
9
|
+
public class IntWithEventListener : ValueWithEventListener<IntWithEvent, int, IntEvent> { }
|
|
10
10
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: a733b090f68d71b4e8001b2dac684c19
|
|
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: a733b090f68d71b4e8001b2dac684c19
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.EventObjects;
|
|
3
|
-
|
|
4
|
-
namespace DREditor.EventObjectServices
|
|
5
|
-
{
|
|
6
|
-
/// <summary>
|
|
7
|
-
///
|
|
8
|
-
/// </summary>
|
|
9
|
-
public class IntWithEventOnTitleScreen : ValueWithEventOnTitleScreen<int, IntEvent> { }
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.EventObjects;
|
|
3
|
+
|
|
4
|
+
namespace DREditor.EventObjectServices
|
|
5
|
+
{
|
|
6
|
+
/// <summary>
|
|
7
|
+
///
|
|
8
|
+
/// </summary>
|
|
9
|
+
public class IntWithEventOnTitleScreen : ValueWithEventOnTitleScreen<int, IntEvent> { }
|
|
10
10
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 5bc71ee10345ccc4298cc09d582eab08
|
|
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: 5bc71ee10345ccc4298cc09d582eab08
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|