Exemple #1
0
    // コンストラクタ
    public PrefabManager()
    {
        this.prefabMap             = new Dictionary <string, GameObject>();
        this.pointNameList         = new List <string>();
        this.prefabPointDictionary = new Dictionary <string, string>();

        GameObject[] prefabs = Resources.LoadAll <GameObject>("360photo/Prefab/03/");
        foreach (GameObject prefab in prefabs)
        {
            this.prefabMap.Add(prefab.name, prefab);

            PrefabInfo info = prefab.GetComponent <PrefabInfo>();
            if (info != null)
            {
                this.pointNameList.Add(info.GetPointName());
                this.prefabPointDictionary.Add(info.GetPointName(), prefab.name);
            }
        }
    }