Example #1
0
    public GameObject Load(string name)
    {
        var go = Resources.Load <GameObject>(name);

        if (go == null)
        {
            Dbg.E("Loading failed! - " + name);
        }
        return(go);
    }
Example #2
0
    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);
    }