void Awake() { this.grid = transform.parent.parent.GetComponent<Grid> (); renderer = GetComponent<Renderer> (); randomize = false; // to set baseColor renderer.material.color = baseColor; }
void Start() { //init height = keyMap.Length; lights = GetComponent<IndicatorLights> (); colors = GetComponent<Colors> (); CCGrids = GetComponents<CCSignalGrid> (); //create note grid noteGrid = gameObject.AddComponent<Grid> (); }