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.
@@ -4,7 +4,7 @@ using jeanf.questsystem;
4
4
  using UnityEditor;
5
5
  using UnityEngine;
6
6
 
7
- public class QuestInfoSO_Editor : Editor
7
+ public class QuestSO_Editor : Editor
8
8
  {
9
9
  [CustomEditor(typeof(QuestSO))]
10
10
  public class BoolEventOnClickEditor : Editor {
@@ -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
@@ -0,0 +1,11 @@
1
+ fileFormatVersion: 2
2
+ guid: 4d6bc104dc5aaf843822427976cba928
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"fr.jeanf.questsystem",
3
- "version":"0.0.34",
3
+ "version":"0.0.36",
4
4
  "displayName":"Quest system",
5
5
  "description":"This package uses Scriptable Objects to define quests.",
6
6
  "unity": "2021.3",