public override void gaxb_init() { base.gaxb_init(); if (title == null) { gameObject.name = "<ColorButton/>"; } button = gameObject.AddComponent <Button> (); if (pressedColor != null) { PlanetUnityButtonHelper.SetPressedColor(button, pressedColor.Value); } PlanetUnityButtonHelper.SetOnTouchUp(this, button, onTouchUp); PlanetUnityButtonHelper.SetOnTouchDown(this, button, null); }