static void Initialize() { if (instance != null) { return; } instance = FindObjectOfType <BulkLines>(); instance.InitializeInternal(); }
void Update() { // let's draw a bunch of lines! for (var i = 0; i < numLines; i++) { BulkLines.DrawLine( Random.insideUnitCircle * areaRadius, Random.insideUnitCircle * areaRadius, Random.Range(minWidth, maxWidth), Random.ColorHSV(0, 1, 1, 1, 1, 1, 1, 1) ); } }