internal void RemoveClickEvent(string name)
        {
            AdvGraphicObject obj2 = this.FindObject(name);

            if (obj2 != null)
            {
                IAdvClickEvent componentInChildren = obj2.get_gameObject().GetComponentInChildren <IAdvClickEvent>();
                if (componentInChildren != null)
                {
                    componentInChildren.RemoveClickEvent();
                }
            }
        }
        internal GameObject FindObjectOrLayer(string name)
        {
            AdvGraphicObject obj2 = this.FindObject(name);

            if (obj2 != null)
            {
                return(obj2.get_gameObject());
            }
            AdvGraphicLayer layer = this.FindLayer(name);

            if (layer != null)
            {
                return(layer.get_gameObject());
            }
            return(null);
        }
        internal void AddClickEvent(string name, bool isPolygon, StringGridRow row, UnityAction <BaseEventData> action)
        {
            AdvGraphicObject obj2 = this.FindObject(name);

            if (obj2 == null)
            {
                Debug.LogError("can't find Graphic object" + name);
            }
            else
            {
                IAdvClickEvent componentInChildren = obj2.get_gameObject().GetComponentInChildren <IAdvClickEvent>();
                if (componentInChildren == null)
                {
                    Debug.LogError("can't find IAdvClickEvent Interface in " + name);
                }
                else
                {
                    componentInChildren.AddClickEvent(isPolygon, row, action);
                }
            }
        }