Final touchups to the lifecycle management
This commit is contained in:
@@ -32,9 +32,6 @@ namespace Dialogue
|
||||
public bool IsCompleted { get; private set; }
|
||||
public string CurrentSpeakerName => dialogueGraph?.speakerName;
|
||||
|
||||
|
||||
public override int ManagedAwakePriority => 150; // Dialogue systems
|
||||
|
||||
internal override void OnManagedStart()
|
||||
{
|
||||
// Get required components
|
||||
@@ -184,10 +181,8 @@ namespace Dialogue
|
||||
return null;
|
||||
}
|
||||
|
||||
protected override void OnDestroy()
|
||||
internal override void OnManagedDestroy()
|
||||
{
|
||||
base.OnDestroy();
|
||||
|
||||
// Unregister from events
|
||||
if (PuzzleManager.Instance != null)
|
||||
PuzzleManager.Instance.OnStepCompleted -= OnAnyPuzzleStepCompleted;
|
||||
|
||||
Reference in New Issue
Block a user