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

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

        models.Clear();
    }
示例#2
0
    protected virtual void OnDestroy()
    {
        if (Models != null)
        {
            for (var i = Models.Count - 1; i >= 0; i--)
            {
                SgtCloudsphereModel.MarkForDestruction(Models[i]);
            }
        }

        SgtHelper.Destroy(Material);
    }