Exemple #1
0
    private void OnDestroy()
    {
        DialogueRunner runner = MainSingleton.Instance?.dialogueRunner;

        if (runner)
        {
            runner.RemoveCommandHandler("Show");
            runner.RemoveCommandHandler("Change");
            runner.RemoveCommandHandler("Hide");
        }
    }
Exemple #2
0
    private void OnDestroy()
    {
        DialogueRunner runner = MainSingleton.Instance?.dialogueRunner;

        if (runner)
        {
            runner.RemoveCommandHandler("SetTimed");
        }
    }