void OnTriggerEnter(Collider other) { // string output = ""; // foreach (CColor item in currentColors) { // output += item.Name; // } // // Debug.Log (output); //this.GetComponent<Renderer>().material.color = UpdateColor(); if (gamecontroller.GameStarted) { currentColors[other.GetComponentInChildren <CColor> ().Name] += 1; if (CheckColors()) { this.GetComponent <Renderer> ().material.color = gamecontroller.NeededColor.color; gamecontroller.score += 1; gamecontroller.UpdateUI(); } } other.GetComponent <DragObjectKinect>().MixTrigger(); }