Destroy() public method

public Destroy ( ) : void
return void
Ejemplo n.º 1
0
 protected void OnDestroy()
 {
     material = null;
     SysFont.SafeDestroy(_createdMaterial);
     if (_texture != null)
     {
         _texture.Destroy();
         _texture = null;
     }
 }
Ejemplo n.º 2
0
 protected void OnDestroy()
 {
     if (_texture != null)
     {
         _texture.Destroy();
         _texture = null;
     }
     SysFont.SafeDestroy(_mesh);
     SysFont.SafeDestroy(_createdMaterial);
     _createdMaterial = null;
     _material        = null;
     _vertices        = null;
     _uv        = null;
     _triangles = null;
     _mesh      = null;
     _filter    = null;
     _renderer  = null;
 }