Ejemplo n.º 1
0
        public void EnableObject(string objname)
        {
            GameObject g;

            if (ObjectInfo.FindByName(objects, objname, out g))
            {
                g.SetActive(true);
            }
        }
Ejemplo n.º 2
0
        public void DisableObject(string objname)
        {
            GameObject g;

            if (ObjectInfo.FindByName(objects, objname, out g))
            {
                g.SetActive(false);
            }
            else
            {
                Debug.LogErrorFormat("Can't find object named {0}", objname);
            }
        }