Пример #1
0
    public GameObject Create(PrefabDefine Define, Vector3 pos, Quaternion rot)
    {
        bool status = createMap.ContainsKey(Define);

        if (status)
        {
            return(Create(createMap[Define].gameObject, pos, rot));
        }
        return(null);
    }
Пример #2
0
    /// <summary>
    /// 타입으로생성
    /// </summary>
    public GameObject Create(PrefabDefine Define)
    {
        bool status = createMap.ContainsKey(Define);

        if (status)
        {
            return(Create(createMap[Define].gameObject, new Vector3(0, 0, 0), createMap[Define].gameObject.transform.rotation));
        }
        return(null);
    }