public override bool Touch(float x, float y, bool press, bool unpress, int pointer) { bool processed = base.Touch(x, y, press, unpress, pointer); if (processed) { return(true); } if (!Enabled) { return(true); } if (m_children.Touch(x, y, press, unpress, pointer)) { return(true); } if (m_background.Touch(x, y, press, unpress, pointer)) // make sure that click inside panel is not transparent { return(true); } return(false); }
public override bool Touch(float x, float y, bool press, bool unpress, int pointer) { bool processed = base.Touch(x, y, press, unpress, pointer); if (processed) { return(true); } if (!Enabled) { return(true); } if (m_children.Touch(x, y, press, unpress, pointer)) { return(true); } if (m_background.Touch(x, y, press, unpress, pointer)) { return(true); } return(false); }