protected virtual void OnDestroy()
    {
        SgtHelper.Destroy(material);

        for (var i = models.Count - 1; i >= 0; i--)
        {
            SgtJovianModel.MarkForDestruction(models[i]);
        }

        models.Clear();
    }
Пример #2
0
    protected virtual void OnDestroy()
    {
        if (Models != null)
        {
            for (var i = Models.Count - 1; i >= 0; i--)
            {
                SgtJovianModel.MarkForDestruction(Models[i]);
            }
        }

        SgtHelper.Destroy(Material);
    }