public GameObject Load(string name) { var go = Resources.Load <GameObject>(name); if (go == null) { Dbg.E("Loading failed! - " + name); } return(go); }
public void MakePool(string name, int instCount) { GameObject prefab = Load(_path + name); if (prefab == null) { Dbg.E("Prefab loading failed! - {0}", _path + name); return; } MakePool(name, prefab, instCount); }