Пример #1
0
    void DespawnSFXShot(sfxShotEntry shot)
    {
        activeList.Remove(shot);
        inactiveList.Add(shot);

        shot.trans.parent = transform;
        shot.Despawn();
    }
Пример #2
0
    sfxShotEntry CreateSFXShot()
    {
        var go   = Instantiate(prefab, transform);
        var shot = new sfxShotEntry(go);

        activeList.Add(shot);

        return(shot);
    }