Пример #1
0
 void Start()
 {
     // Note that setting the size of polygon to zero will result in zero vectors.
     // Since the polygon class's resizing logic uses vertices' normalized vectors,
     // setting it to zero will permanetly disable future resizing.
     polygon = GetComponent <OutlinedPolygon>();
     polygon.UpdateInnerSize(0.0001f);
     polygon.UpdateOuterSize(0.0001f);
 }
Пример #2
0
 void Awake()
 {
     polygon = GetComponent <OutlinedPolygon>();
 }
Пример #3
0
 private void Start()
 {
     polygon = GetComponent <OutlinedPolygon>();
     polygon.UpdateInnerSize(size);
     polygon.UpdateOuterSize(size + borderThickness);
 }