예제 #1
0
    public void AutoDestroyObject()
    {
        spawnable.EnableCollision(false);
        spawnable.DisplayVisuals(false);

        if (autoDestroyEffect != null)
        {
            autoDestroyEffect.SpawnEffect();
        }

        // Release to pool
        spawnable.Release();
    }