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