Exemplo n.º 1
0
        void Start()
        {
            buttons = (RemainingLinesButton[])GetComponentsInChildren<RemainingLinesButton>();
            lineCounts = (LineCountManager)FindObjectOfType<LineCountManager>();

            foreach(var button in buttons)
                SetButtonVisibilityForColour(button.Colour);
        }
Exemplo n.º 2
0
 void Start()
 {
     lineCountManager = (LineCountManager)FindObjectOfType(typeof(LineCountManager));
 }