Ejemplo n.º 1
0
    private void UpdatePanel(TabButton button)
    {
        titleTextField.text       = button.GetTitleTextString();
        descriptionTextField.text = button.GetDescriptionTextString();

        expandConditionTextField.text = button.GetExpandConditionTextString();
        deathConditionTextField.text  = button.GetDeathConditionTextString();

        gifGameObject.GetComponent <Animator>().runtimeAnimatorController = button.GetAnimator().runtimeAnimatorController;
        gifGameObject.GetComponent <SpriteRenderer>().sprite = button.GetSpriteRenderer().sprite;
    }