Пример #1
0
    void Start()
    {
        if (!onlyOnStart)
        {
            variable.AddOnChangeCallback(UpdateText);
        }

        UpdateText();
    }
Пример #2
0
    void Start()
    {
        rectTransform = GetComponent <RectTransform>();

        progress.AddOnChangeCallback(UpdateSizeParent);
    }