Beispiel #1
0
			void Awake()
			{
				this.grid = transform.parent.parent.GetComponent<Grid> ();
				renderer = GetComponent<Renderer> ();
				randomize = false; // to set baseColor
				renderer.material.color = baseColor;
			}
Beispiel #2
0
		void Start()
		{
			//init 
			height = keyMap.Length;
			lights = GetComponent<IndicatorLights> ();
			colors = GetComponent<Colors> ();
			CCGrids = GetComponents<CCSignalGrid> ();

			//create note grid
			noteGrid = gameObject.AddComponent<Grid> ();
		}