void DespawnSFXShot(sfxShotEntry shot) { activeList.Remove(shot); inactiveList.Add(shot); shot.trans.parent = transform; shot.Despawn(); }
sfxShotEntry CreateSFXShot() { var go = Instantiate(prefab, transform); var shot = new sfxShotEntry(go); activeList.Add(shot); return(shot); }