Beispiel #1
0
        public static RectRenderer InstantiateRect(RectProperty property)
        {
            var go = new GameObject("Rect");
            var rd = go.AddComponent <RectRenderer>();

            rd.property = property;
            return(rd);
        }
Beispiel #2
0
        /*
         * RECT
         */

        static void ApplyToRect(RectProperty obj)
        {
            /*
             * obj.color = color;
             * obj.Height = rectHeight;
             * obj.Width = rectWidth;
             * obj.Angle = angle;
             *
             * obj.borderStyle = borderStyle;
             * obj.borderPosition = borderPosition;
             * obj.dashLength = dashLength;
             * obj.gapLength = gapLength;
             */
        }
Beispiel #3
0
 public static void SetDefaultRectStyle(RectProperty obj)
 {
     /*
      * color = obj.color;
      * rectHeight = obj.Height;
      * rectWidth = obj.Width;
      * angle = obj.Angle;
      *
      * borderStyle = obj.borderStyle;
      * borderPosition = obj.borderPosition;
      * dashLength = obj.dashLength;
      * gapLength = obj.gapLength;
      */
 }
Beispiel #4
0
 protected override void CacheProperty()
 {
     cachedProperty        = property.Clone() as RectProperty;
     propertyObjectChanged = false;
 }