Esempio n. 1
0
 //   int _indexOffset = 0;
 // Use this for initialization
 void Start()
 {
     _decalPool = new GameObjectPool(_decalPoolSize);
     foreach (DecalData dd in _decalDatas)
     {
         _decalPool.AddTag(dd.gameObjectTag, dd.decalSprites[0]);
     }
     _muzzleFlashPool = new GameObjectPool(_muzzleFlashPoolSize);
     _muzzleFlashPool.AddTag(MuzzleFlashTag, _muzzleFlashSource);
     _smokePool = new GameObjectPool(_smokePoolSize);
     _smokePool.AddTag(SmokeTag, _smokeSource);
 }