private void Awake() { if (isGlobalEvents) { if (Instance != null) { Debug.LogWarning("Already has 1 BlazeDialogueEvents marked as isGlobalEvents"); } else { Instance = this; } } }
public void StartDialogue() { if (targetEvents) { events = targetEvents; } else { events = BlazeDialogueEvents.Instance; } if (!events) { Debug.LogError("BlazeDialogueEvents doesn't exist, the dialogue couldn't be played."); return; } events.currentFocusDialogue = this; StopCoroutine("StartDialogueCoroutine"); StartCoroutine("StartDialogueCoroutine"); }