示例#1
0
        private void OnEnable()
        {
            baseScale = transform.localScale;
            float usabilityScaleFactor = UsabilityUtilities.GetUsabilityScaleFactor(Camera.main);

            transform.localScale = (baseScale * usabilityScaleFactor);
        }
        protected override void OnEnableAfterStart()
        {
            base.OnEnableAfterStart();

            baseScale = transform.localScale;
            float usabilityScaleFactor = UsabilityUtilities.GetUsabilityScaleFactor(Camera.main);

            transform.localScale = (baseScale * usabilityScaleFactor);
        }