Code: Select all
public override void OnStart()
{
BarkDialogue(); // Automatically triggers the dialogue
}
// Implement the Bark functionality
private void BarkDialogue()
{
DialogueManager.Bark("Bark", transform); // Trigger Bark
}
// You can implement other logic for the Task here
public override TaskStatus OnUpdate()
{
return TaskStatus.Success;
}
MissingReferenceException: The object of type 'PixelCrushers.DialogueSystem.Wrappers.StandardBarkUI' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
Could you please help me figure out what the issue is?