void Start() { buttons = (RemainingLinesButton[])GetComponentsInChildren<RemainingLinesButton>(); lineCounts = (LineCountManager)FindObjectOfType<LineCountManager>(); foreach(var button in buttons) SetButtonVisibilityForColour(button.Colour); }
void Start() { lineCountManager = (LineCountManager)FindObjectOfType(typeof(LineCountManager)); }