public Pool(AttackObjectType aoType) { switch (aoType) { case AttackObjectType.Dart: m_pref = (GameObject)Resources.Load("Prefab/AttackObject/syuriken"); break; } }
public Pool GetPoolByType(AttackObjectType aotype) { if (!AObjectDic.ContainsKey(aotype)) { Pool aoPool = new Pool(aotype); AObjectDic.Add(aotype, aoPool); return aoPool; } return AObjectDic[aotype]; }