public Cube myCube; // Attach this to your cube
void Start() {
UIEventManager.Get(myCube.gameObject).onClick += MyCubeWasClicked; // <-- Tween the color faster if you want it to be "instantly" colorized
}
void MyCubeWasClicked(GameObject go) {
TweenColor tween = TweenColor.Begin(go, 1.0f, Color.green);
}
void Destroy() {
UIEventManager.Get(myCube.gameObject).onClick -= MyCubeWasClicked;
}