Exemplo n.º 1
0
    public virtual void Exit()
    {
        ExitButton eb = FindUtilities
                        .TryFind(this.transform.parent.parent.gameObject, "ExitButton")
                        .GetComponent <ExitButton>();

        eb.ExitPuzzle();
    }
Exemplo n.º 2
0
    private void ExitPuzzle()
    {
        ExitButton eb = FindUtilities
                        .TryFind(this.character.transform.parent.parent.gameObject, "ExitButton")
                        .GetComponent <ExitButton>();

        eb.ExitPuzzle();
    }