Example #1
0
        public GameObject GetOrAddGroup(string name)
        {
            var o = GK.FindChild(gameObject, name, true, false);

            if (!o)
            {
                o = new GameObject(name);
                GK.SetParent(o, gameObject, false);
                o.layer = GK.LayerId("UI");
            }
            return(o);
        }
Example #2
0
 public GameObject TryFindChild(string name)
 {
     return(GK.FindChild(this.gameObject, name, true));
 }