Destroy() public method

public Destroy ( ) : void
return void
示例#1
0
 protected void OnDestroy()
 {
     material = null;
     SysFont.SafeDestroy(_createdMaterial);
     if (_texture != null)
     {
         _texture.Destroy();
         _texture = null;
     }
 }
示例#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;
 }