Exemplo n.º 1
0
    // Start registers us to the DialogController and LanguageController, as well as
    // initializes our treeList and treeIds
    private void Start()
    {
        // if there's any remaining buttons, get rid of them!!
        foreach (ResponseButton button in GetComponentsInParent <ResponseButton>())
        {
            Destroy(button);
        }

        this.AssignControllers();

        dialogCtrl.RegisterTreeListener(this);

        treeList = dialogCtrl.GetActualTrees();
        treeIds  = dialogCtrl.GetTrees();

        this.RefreshDisplay(null);
    }