Example #1
0
 // Update is called once per frame
 void Update()
 {
     if (xAngle != null && yAngle != null && zAngle != null)
     {
         transform.Rotate(xAngle.GetValue(), yAngle.GetValue(), zAngle.GetValue());
     }
 }
Example #2
0
        public override void ApplyTo(SkinComponent skinComponent)
        {
            var button = skinComponent.GetComponent <Button>();

            button.colors = colors.GetValue();

            var text = skinComponent.GetComponentInChildren <Text>();

            if (text != null)
            {
                if (fontSize != null)
                {
                    text.fontSize = (int)fontSize.GetValue();
                }

                if (fontColor != null)
                {
                    text.color = fontColor.GetValue();
                }

                if (font != null)
                {
                    text.font = font;
                }

                text.fontStyle = fontStyle;
            }
        }
        public override void ApplyTo(SkinComponent skinComponent)
        {
            var textComponent = skinComponent.GetComponent <Text>();

            if (fontSize != null)
            {
                textComponent.fontSize = (int)fontSize.GetValue();
            }

            if (color != null)
            {
                textComponent.color = color.GetValue();
            }

            if (font != null)
            {
                textComponent.font = font;
            }

            textComponent.fontStyle = fontStyle;
        }