Example #1
0
    void Start()
    {
        if (!onlyOnStart)
        {
            variable.AddOnChangeCallback(UpdateText);
        }

        UpdateText();
    }
Example #2
0
    void Start()
    {
        rectTransform = GetComponent <RectTransform>();

        progress.AddOnChangeCallback(UpdateSizeParent);
    }