fr.jeanf.questsystem 0.0.34 → 0.0.36
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/Runtime/Scripts/Core/Editor/{QuestInfoSO_Editor.cs → QuestSO_Editor.cs} +1 -1
- package/Runtime/Scripts/Core/Editor/QuestStep_Editor.cs +24 -0
- package/Runtime/Scripts/Core/Editor/QuestStep_Editor.cs.meta +11 -0
- package/Runtime/Scripts/Core/QuestStep.cs +0 -2
- package/package.json +1 -1
- /package/Runtime/Scripts/Core/Editor/{QuestInfoSO_Editor.cs.meta → QuestSO_Editor.cs.meta} +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#if UNITY_EDITOR
|
|
2
|
+
using UnityEditor;
|
|
3
|
+
using UnityEngine;
|
|
4
|
+
|
|
5
|
+
namespace jeanf.questsystem
|
|
6
|
+
{
|
|
7
|
+
[CustomEditor(typeof(QuestStep), true)]
|
|
8
|
+
public class QuestStep_Editor : Editor
|
|
9
|
+
{
|
|
10
|
+
public override void OnInspectorGUI()
|
|
11
|
+
{
|
|
12
|
+
GUILayout.Space(10);
|
|
13
|
+
var eventToSend = (QuestStep)target;
|
|
14
|
+
if (GUILayout.Button("Regenerate questStep id", GUILayout.Height(20)))
|
|
15
|
+
{
|
|
16
|
+
eventToSend.GenerateId(); // how do i call this?
|
|
17
|
+
}
|
|
18
|
+
GUILayout.Space(10);
|
|
19
|
+
|
|
20
|
+
DrawDefaultInspector();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
#endif
|
|
@@ -14,8 +14,6 @@ namespace jeanf.questsystem
|
|
|
14
14
|
[System.Serializable, NodeMenuItem("questSystem/QuestStep")]
|
|
15
15
|
public class QuestStep : MonoBehaviour, IDebugBehaviour
|
|
16
16
|
{
|
|
17
|
-
|
|
18
|
-
public GameObject PrefabToInstantiate;
|
|
19
17
|
[field: Space(10)][field: ReadOnly][SerializeField] string stepId;
|
|
20
18
|
public string StepId { get { return stepId; } }
|
|
21
19
|
|
package/package.json
CHANGED
|
File without changes
|