public static CircleRenderer InstantiateCircle(CircleProperty property) { var go = new GameObject("Circle"); var rd = go.AddComponent <CircleRenderer>(); rd.property = property; return(rd); }
public static void SetDefaultCircleStyle(CircleProperty obj) { /* * color = obj.color; * diameter = obj.diameter; * * borderStyle = obj.borderStyle; * borderPosition = obj.borderPosition; * dashLength = obj.dashLength; * gapLength = obj.gapLength; */ }
/* * CIRCLE */ static void ApplyToCircle(CircleProperty obj) { /* * obj.color = color; * obj.diameter = diameter; * * obj.borderStyle = borderStyle; * obj.borderPosition = borderPosition; * obj.dashLength = dashLength; * obj.gapLength = gapLength; */ }
protected override void CacheProperty() { cachedProperty = property.Clone() as CircleProperty; propertyObjectChanged = false; }