示例#1
0
        private void Awake()
        {
            minFillAmount = Mathf.Clamp01(relativeMargin);
            maxFillAmount = Mathf.Clamp01(1.0f - relativeMargin);

            if (!Util.IsPrefab(gameObject))
            {
                Stats.AddChangeListener(this);
                TriggerUpdate();
            }
        }