fr.jeanf.questsystem 0.0.43 → 0.0.45

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.
@@ -78,7 +78,7 @@ namespace jeanf.questsystem
78
78
  GameEventsManager.instance.questEvents.onQuestStateChange += QuestStateChange;
79
79
  GameEventsManager.instance.inputEvents.onSubmitPressed += UpdateState;
80
80
  QuestStep.sendNextStepId += InstantiateQuestStep;
81
- QuestStep.stepCompleted += DestroyQuestStep;
81
+ //QuestStep.stepCompleted += DestroyQuestStep;
82
82
  QuestStep.stepActive += UpdateStepStatus;
83
83
 
84
84
  }
@@ -90,7 +90,7 @@ namespace jeanf.questsystem
90
90
  GameEventsManager.instance.questEvents.onQuestStateChange -= QuestStateChange;
91
91
  GameEventsManager.instance.inputEvents.onSubmitPressed -= UpdateState;
92
92
  QuestStep.sendNextStepId -= InstantiateQuestStep;
93
- QuestStep.stepCompleted -= DestroyQuestStep;
93
+ //QuestStep.stepCompleted -= DestroyQuestStep;
94
94
  QuestStep.stepActive -= UpdateStepStatus;
95
95
 
96
96
  }
@@ -110,7 +110,7 @@ namespace jeanf.questsystem
110
110
  {
111
111
  if (activeSteps.ContainsKey(id))
112
112
  {
113
- Destroy(activeSteps[id].gameObject);
113
+ //Destroy(activeSteps[id].gameObject);
114
114
  }
115
115
  }
116
116
 
@@ -94,7 +94,7 @@ namespace jeanf.questsystem
94
94
  stepActive?.Invoke(stepId, stepStatus);
95
95
 
96
96
  if (isDebug) Debug.Log($"Step with id: {stepId} finished. Destroying the gameobject with name {this.name}", this);
97
- Destroy(this);
97
+ Destroy(this.gameObject);
98
98
  }
99
99
 
100
100
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"fr.jeanf.questsystem",
3
- "version":"0.0.43",
3
+ "version":"0.0.45",
4
4
  "displayName":"Quest system",
5
5
  "description":"This package uses Scriptable Objects to define quests.",
6
6
  "unity": "2021.3",