GameObject LoadItem(EnvironmentObject id) { var go = Instantiate(Resources.Load <GameObject>(id.ToString())); go.transform.SetParent(transform); go.name = id.ToString(); items[id] = go; SetAllItemActiveExceptOtherWise(id, false); return(go); }