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.
Files changed (54) hide show
  1. package/.attestation.p7m +0 -0
  2. package/BoolWithEventOnTitleScreen.cs +9 -9
  3. package/BoolWithEventOnTitleScreen.cs.meta +11 -11
  4. package/DREditor.EventObjectServices.asmdef +16 -16
  5. package/DREditor.EventObjectServices.asmdef.meta +7 -7
  6. package/EvaluateCamerasStates.cs +102 -102
  7. package/EvaluateCamerasStates.cs.meta +11 -11
  8. package/FloatWithEventListener.cs +9 -9
  9. package/FloatWithEventListener.cs.meta +11 -11
  10. package/FloatWithEventOnTitleScreen.cs +9 -9
  11. package/FloatWithEventOnTitleScreen.cs.meta +11 -11
  12. package/IntWithEventIndexListener.cs +24 -24
  13. package/IntWithEventIndexListener.cs.meta +11 -11
  14. package/IntWithEventListener.cs +9 -9
  15. package/IntWithEventListener.cs.meta +11 -11
  16. package/IntWithEventOnTitleScreen.cs +9 -9
  17. package/IntWithEventOnTitleScreen.cs.meta +11 -11
  18. package/InverseObjectStateBoolWithEvent.cs +49 -49
  19. package/InverseObjectStateBoolWithEvent.cs.meta +11 -11
  20. package/ObjectActiveOnChapterIndex.cs +83 -83
  21. package/ObjectActiveOnChapterIndex.cs.meta +11 -11
  22. package/ObjectNameDisplayer.cs +46 -46
  23. package/ObjectNameDisplayer.cs.meta +11 -11
  24. package/OptionWithEventListener.cs +56 -56
  25. package/OptionWithEventListener.cs.meta +11 -11
  26. package/ResetCharacterControllerOnEvent.cs +46 -46
  27. package/ResetCharacterControllerOnEvent.cs.meta +11 -11
  28. package/{Samples → Samples~}/Float_With_Event_On_Title_Screen.prefab +48 -48
  29. package/{Samples → Samples~}/Float_With_Event_On_Title_Screen.prefab.meta +7 -7
  30. package/{Samples → Samples~}/Int_With_Event_On_Title_Screen.prefab +48 -48
  31. package/{Samples → Samples~}/Int_With_Event_On_Title_Screen.prefab.meta +7 -7
  32. package/{Samples → Samples~}/Reset_Player.prefab +118 -118
  33. package/{Samples → Samples~}/Reset_Player.prefab.meta +7 -7
  34. package/{Samples → Samples~}/Selectable_Object_Manager.prefab +49 -49
  35. package/{Samples → Samples~}/Selectable_Object_Manager.prefab.meta +7 -7
  36. package/SceneEventOnStart.cs +26 -26
  37. package/SceneEventOnStart.cs.meta +11 -11
  38. package/SelectStringWithEvent.cs +43 -43
  39. package/SelectStringWithEvent.cs.meta +11 -11
  40. package/SelectableObjectManager.cs +44 -44
  41. package/SelectableObjectManager.cs.meta +11 -11
  42. package/SpriteOnIntEvent.cs +67 -67
  43. package/SpriteOnIntEvent.cs.meta +11 -11
  44. package/StringWithEventListener.cs +9 -9
  45. package/StringWithEventListener.cs.meta +11 -11
  46. package/TextWithEventListener.cs +45 -45
  47. package/TextWithEventListener.cs.meta +11 -11
  48. package/ValueWithEventListener.cs +59 -59
  49. package/ValueWithEventListener.cs.meta +11 -11
  50. package/ValueWithEventOnTitleScreen.cs +36 -36
  51. package/ValueWithEventOnTitleScreen.cs.meta +11 -11
  52. package/package.json +41 -36
  53. package/package.json.meta +7 -0
  54. package/Samples.meta +0 -8
@@ -1,50 +1,50 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.EventObjects;
3
- using UnityEngine;
4
-
5
- namespace DREditor.EventObjectServices
6
- {
7
- /// <summary>
8
- ///
9
- /// </summary>
10
- /// <remarks></remarks>
11
- public class InverseObjectStateBoolWithEvent : MonoBehaviour
12
- {
13
- /// <summary>
14
- ///
15
- /// </summary>
16
- [Header("")]
17
-
18
- [Space]
19
-
20
- [Tooltip("")]
21
- [SerializeField] protected BoolWithEvent boolWithEvent = null;
22
-
23
- /// <summary>
24
- ///
25
- /// </summary>
26
- [Tooltip("")]
27
- [SerializeField] protected GameObject objectToSet = null;
28
-
29
-
30
- /// <summary>
31
- ///
32
- /// </summary>
33
- protected virtual void OnEnable() => boolWithEvent.AddListener(OnLeavingState);
34
-
35
- /// <summary>
36
- ///
37
- /// </summary>
38
- protected virtual void OnDisable() => boolWithEvent.RemoveListener(OnLeavingState);
39
-
40
- /// <summary>
41
- ///
42
- /// </summary>
43
- /// <param name="state"></param>
44
- protected virtual void OnLeavingState(bool state)
45
- {
46
- if (objectToSet != null)
47
- objectToSet.SetActive(!state);
48
- }
49
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.EventObjects;
3
+ using UnityEngine;
4
+
5
+ namespace DREditor.EventObjectServices
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ /// <remarks></remarks>
11
+ public class InverseObjectStateBoolWithEvent : MonoBehaviour
12
+ {
13
+ /// <summary>
14
+ ///
15
+ /// </summary>
16
+ [Header("")]
17
+
18
+ [Space]
19
+
20
+ [Tooltip("")]
21
+ [SerializeField] protected BoolWithEvent boolWithEvent = null;
22
+
23
+ /// <summary>
24
+ ///
25
+ /// </summary>
26
+ [Tooltip("")]
27
+ [SerializeField] protected GameObject objectToSet = null;
28
+
29
+
30
+ /// <summary>
31
+ ///
32
+ /// </summary>
33
+ protected virtual void OnEnable() => boolWithEvent.AddListener(OnLeavingState);
34
+
35
+ /// <summary>
36
+ ///
37
+ /// </summary>
38
+ protected virtual void OnDisable() => boolWithEvent.RemoveListener(OnLeavingState);
39
+
40
+ /// <summary>
41
+ ///
42
+ /// </summary>
43
+ /// <param name="state"></param>
44
+ protected virtual void OnLeavingState(bool state)
45
+ {
46
+ if (objectToSet != null)
47
+ objectToSet.SetActive(!state);
48
+ }
49
+ }
50
50
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 0d3f8dd2724f8ed4f9f65f923acd8da7
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: 0d3f8dd2724f8ed4f9f65f923acd8da7
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,84 +1,84 @@
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
- using UnityEngine.Serialization;
6
-
7
- namespace DREditor.EventObjectServices
8
- {
9
- /// <summary>
10
- ///
11
- /// </summary>
12
- [ClassHeader("")]
13
- public class ObjectActiveOnChapterIndex : SceneEventListener
14
- {
15
- /// <summary>
16
- ///
17
- /// </summary>
18
- [Space]
19
-
20
- [Space]
21
-
22
- [Header("")]
23
-
24
- [Tooltip("")]
25
- [SerializeField] protected IntWithEvent currentChapterIndex = null;
26
-
27
- /// <summary>
28
- ///
29
- /// </summary>
30
- [Space]
31
-
32
- [Tooltip("")]
33
- [SerializeField] protected bool setObjectsActiveTo = false;
34
-
35
- /// <summary>
36
- ///
37
- /// </summary>
38
- [Space]
39
-
40
- [FormerlySerializedAs("visibleChapterIndex")]
41
- [Tooltip("")]
42
- [SerializeField] protected List<int> visibleChapterIndexes = new();
43
-
44
- /// <summary>
45
- ///
46
- /// </summary>
47
- [Tooltip("")]
48
- [SerializeField] protected List<GameObject> gameObjects = new();
49
-
50
-
51
- /// <inheritdoc/>
52
- public override void OnEventRaised()
53
- {
54
- base.OnEventRaised();
55
-
56
- CheckLoad();
57
- }
58
-
59
- /// <summary>
60
- ///
61
- /// </summary>
62
- protected virtual void CheckLoad()
63
- {
64
- if (ChapterMatchesVisibilityIndex())
65
- SetGameObjectsActive();
66
- }
67
-
68
- /// <summary>
69
- ///
70
- /// </summary>
71
- /// <returns></returns>
72
- protected virtual bool ChapterMatchesVisibilityIndex()
73
- => visibleChapterIndexes.Contains(currentChapterIndex.Value);
74
-
75
- /// <summary>
76
- ///
77
- /// </summary>
78
- protected virtual void SetGameObjectsActive()
79
- {
80
- foreach (var go in gameObjects)
81
- go.SetActive(setObjectsActiveTo);
82
- }
83
- }
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
+ using UnityEngine.Serialization;
6
+
7
+ namespace DREditor.EventObjectServices
8
+ {
9
+ /// <summary>
10
+ ///
11
+ /// </summary>
12
+ [ClassHeader("")]
13
+ public class ObjectActiveOnChapterIndex : SceneEventListener
14
+ {
15
+ /// <summary>
16
+ ///
17
+ /// </summary>
18
+ [Space]
19
+
20
+ [Space]
21
+
22
+ [Header("")]
23
+
24
+ [Tooltip("")]
25
+ [SerializeField] protected IntWithEvent currentChapterIndex = null;
26
+
27
+ /// <summary>
28
+ ///
29
+ /// </summary>
30
+ [Space]
31
+
32
+ [Tooltip("")]
33
+ [SerializeField] protected bool setObjectsActiveTo = false;
34
+
35
+ /// <summary>
36
+ ///
37
+ /// </summary>
38
+ [Space]
39
+
40
+ [FormerlySerializedAs("visibleChapterIndex")]
41
+ [Tooltip("")]
42
+ [SerializeField] protected List<int> visibleChapterIndexes = new();
43
+
44
+ /// <summary>
45
+ ///
46
+ /// </summary>
47
+ [Tooltip("")]
48
+ [SerializeField] protected List<GameObject> gameObjects = new();
49
+
50
+
51
+ /// <inheritdoc/>
52
+ public override void OnEventRaised()
53
+ {
54
+ base.OnEventRaised();
55
+
56
+ CheckLoad();
57
+ }
58
+
59
+ /// <summary>
60
+ ///
61
+ /// </summary>
62
+ protected virtual void CheckLoad()
63
+ {
64
+ if (ChapterMatchesVisibilityIndex())
65
+ SetGameObjectsActive();
66
+ }
67
+
68
+ /// <summary>
69
+ ///
70
+ /// </summary>
71
+ /// <returns></returns>
72
+ protected virtual bool ChapterMatchesVisibilityIndex()
73
+ => visibleChapterIndexes.Contains(currentChapterIndex.Value);
74
+
75
+ /// <summary>
76
+ ///
77
+ /// </summary>
78
+ protected virtual void SetGameObjectsActive()
79
+ {
80
+ foreach (var go in gameObjects)
81
+ go.SetActive(setObjectsActiveTo);
82
+ }
83
+ }
84
84
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: c7d27a74c3e88f44ab210743f4a369a9
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: c7d27a74c3e88f44ab210743f4a369a9
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,47 +1,47 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.EventObjects;
3
- using DREditor.Services;
4
- using TMPro;
5
- using UnityEngine;
6
-
7
- namespace DREditor.EventObjectServices
8
- {
9
- /// <summary>
10
- ///
11
- /// </summary>
12
- [ClassHeader(nameof(StringWithEventListener) + ", " + nameof(IToTitleScreen) +
13
- "\n\n")]
14
- public class ObjectNameDisplayer : StringWithEventListener, IToTitleScreen
15
- {
16
- /// <summary>
17
- ///
18
- /// </summary>
19
- [Space]
20
-
21
- [Header("")]
22
- [Divider]
23
- [Tooltip("")]
24
- [SerializeField] protected BoolWithEvent displayNameVisible = null;
25
-
26
- /// <summary>
27
- ///
28
- /// </summary>
29
- [Tooltip("")]
30
- [SerializeField] protected TextMeshProUGUI displayText = null;
31
-
32
-
33
- /// <inheritdoc/>
34
- protected override void OnValueChanged(string updatedValue)
35
- {
36
- base.OnValueChanged(updatedValue);
37
-
38
- if (updatedValue != "")
39
- displayText.text = updatedValue;
40
-
41
- displayNameVisible.SetValue(updatedValue != "");
42
- }
43
-
44
- /// <inheritdoc/>
45
- public virtual void ToTitleScreen() => displayNameVisible.SetValue(false);
46
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.EventObjects;
3
+ using DREditor.Services;
4
+ using TMPro;
5
+ using UnityEngine;
6
+
7
+ namespace DREditor.EventObjectServices
8
+ {
9
+ /// <summary>
10
+ ///
11
+ /// </summary>
12
+ [ClassHeader(nameof(StringWithEventListener) + ", " + nameof(IToTitleScreen) +
13
+ "\n\n")]
14
+ public class ObjectNameDisplayer : StringWithEventListener, IToTitleScreen
15
+ {
16
+ /// <summary>
17
+ ///
18
+ /// </summary>
19
+ [Space]
20
+
21
+ [Header("")]
22
+ [Divider]
23
+ [Tooltip("")]
24
+ [SerializeField] protected BoolWithEvent displayNameVisible = null;
25
+
26
+ /// <summary>
27
+ ///
28
+ /// </summary>
29
+ [Tooltip("")]
30
+ [SerializeField] protected TextMeshProUGUI displayText = null;
31
+
32
+
33
+ /// <inheritdoc/>
34
+ protected override void OnValueChanged(string updatedValue)
35
+ {
36
+ base.OnValueChanged(updatedValue);
37
+
38
+ if (updatedValue != "")
39
+ displayText.text = updatedValue;
40
+
41
+ displayNameVisible.SetValue(updatedValue != "");
42
+ }
43
+
44
+ /// <inheritdoc/>
45
+ public virtual void ToTitleScreen() => displayNameVisible.SetValue(false);
46
+ }
47
47
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 20237ba4483535c4a9b4b0acfe03a1cd
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: 20237ba4483535c4a9b4b0acfe03a1cd
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,57 +1,57 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.EventObjects;
3
- using TMPro;
4
- using UnityEngine;
5
- using UnityEngine.Events;
6
-
7
- namespace DREditor.EventObjectServices
8
- {
9
- /// <summary>
10
- ///
11
- /// </summary>
12
- /// <typeparam name="TX"></typeparam>
13
- /// <typeparam name="TY"></typeparam>
14
- public abstract class OptionWithEventListener<TX, TY> : ValueWithEventListener<OptionWithEvent<TX, TY>, TX, TY>, IOptionEventListener,
15
- ISceneEventListener
16
- where TY : UnityEvent<TX>, new()
17
- {
18
- /// <summary>
19
- ///
20
- /// </summary>
21
- [Tooltip("")]
22
- [SerializeField] protected SceneEvent newGameSelected = null;
23
-
24
- /// <summary>
25
- ///
26
- /// </summary>
27
- [Tooltip("")]
28
- [SerializeField] protected TMP_Text displayNameText;
29
-
30
-
31
- public virtual void Initialize(IOptionEvent option)
32
- {
33
- if (displayNameText != null && displayNameText.gameObject.activeSelf)
34
- displayNameText.text = option.OptionDisplayName;
35
-
36
- valueWithEvent = option as OptionWithEvent<TX, TY>;
37
- }
38
-
39
- protected override void OnEnable()
40
- {
41
- base.OnEnable();
42
-
43
- if (newGameSelected != null)
44
- newGameSelected.RegisterListener(this);
45
- }
46
-
47
- protected override void OnDisable()
48
- {
49
- base.OnEnable();
50
-
51
- if (newGameSelected != null)
52
- newGameSelected.UnregisterListener(this);
53
- }
54
-
55
- public virtual void OnEventRaised() => valueWithEvent.SetValue(valueWithEvent.InitialValue);
56
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.EventObjects;
3
+ using TMPro;
4
+ using UnityEngine;
5
+ using UnityEngine.Events;
6
+
7
+ namespace DREditor.EventObjectServices
8
+ {
9
+ /// <summary>
10
+ ///
11
+ /// </summary>
12
+ /// <typeparam name="TX"></typeparam>
13
+ /// <typeparam name="TY"></typeparam>
14
+ public abstract class OptionWithEventListener<TX, TY> : ValueWithEventListener<OptionWithEvent<TX, TY>, TX, TY>, IOptionEventListener,
15
+ ISceneEventListener
16
+ where TY : UnityEvent<TX>, new()
17
+ {
18
+ /// <summary>
19
+ ///
20
+ /// </summary>
21
+ [Tooltip("")]
22
+ [SerializeField] protected SceneEvent newGameSelected = null;
23
+
24
+ /// <summary>
25
+ ///
26
+ /// </summary>
27
+ [Tooltip("")]
28
+ [SerializeField] protected TMP_Text displayNameText;
29
+
30
+
31
+ public virtual void Initialize(IOptionEvent option)
32
+ {
33
+ if (displayNameText != null && displayNameText.gameObject.activeSelf)
34
+ displayNameText.text = option.OptionDisplayName;
35
+
36
+ valueWithEvent = option as OptionWithEvent<TX, TY>;
37
+ }
38
+
39
+ protected override void OnEnable()
40
+ {
41
+ base.OnEnable();
42
+
43
+ if (newGameSelected != null)
44
+ newGameSelected.RegisterListener(this);
45
+ }
46
+
47
+ protected override void OnDisable()
48
+ {
49
+ base.OnEnable();
50
+
51
+ if (newGameSelected != null)
52
+ newGameSelected.UnregisterListener(this);
53
+ }
54
+
55
+ public virtual void OnEventRaised() => valueWithEvent.SetValue(valueWithEvent.InitialValue);
56
+ }
57
57
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 93f7500a3d60420439d3fa0ee59f5ad0
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: 93f7500a3d60420439d3fa0ee59f5ad0
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,47 +1,47 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.EventObjects;
3
- using UnityEngine;
4
-
5
- namespace DREditor.EventObjectServices
6
- {
7
- /// <summary>
8
- ///
9
- /// </summary>
10
- [RequireComponent(typeof(CharacterController))]
11
- [ClassHeader("")]
12
- public class ResetCharacterControllerOnEvent : SceneEventListener
13
- {
14
- /// <summary>
15
- ///
16
- /// </summary>
17
- [Tooltip("")]
18
- [SerializeField] protected CharacterController characterController = null;
19
-
20
- /// <summary>
21
- ///
22
- /// </summary>
23
- [Tooltip("")]
24
- [SerializeField] protected Vector3 resetPosition = new(0, 1.5f, 0);
25
-
26
-
27
- /// <inheritdoc/>
28
- public override void OnEventRaised()
29
- {
30
- base.OnEventRaised();
31
-
32
- ResetCharacterControllerPosition();
33
- }
34
-
35
- /// <summary>
36
- ///
37
- /// </summary>
38
- protected void ResetCharacterControllerPosition()
39
- {
40
- characterController.enabled = false;
41
-
42
- characterController.gameObject.transform.position = resetPosition;
43
-
44
- characterController.enabled = true;
45
- }
46
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.EventObjects;
3
+ using UnityEngine;
4
+
5
+ namespace DREditor.EventObjectServices
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ [RequireComponent(typeof(CharacterController))]
11
+ [ClassHeader("")]
12
+ public class ResetCharacterControllerOnEvent : SceneEventListener
13
+ {
14
+ /// <summary>
15
+ ///
16
+ /// </summary>
17
+ [Tooltip("")]
18
+ [SerializeField] protected CharacterController characterController = null;
19
+
20
+ /// <summary>
21
+ ///
22
+ /// </summary>
23
+ [Tooltip("")]
24
+ [SerializeField] protected Vector3 resetPosition = new(0, 1.5f, 0);
25
+
26
+
27
+ /// <inheritdoc/>
28
+ public override void OnEventRaised()
29
+ {
30
+ base.OnEventRaised();
31
+
32
+ ResetCharacterControllerPosition();
33
+ }
34
+
35
+ /// <summary>
36
+ ///
37
+ /// </summary>
38
+ protected void ResetCharacterControllerPosition()
39
+ {
40
+ characterController.enabled = false;
41
+
42
+ characterController.gameObject.transform.position = resetPosition;
43
+
44
+ characterController.enabled = true;
45
+ }
46
+ }
47
47
  }