internal void SetResources(OutlineResources resources)
 {
     if (resources == null)
     {
         if (_materials != null)
         {
             _materials.Dispose();
             _materials = null;
         }
     }
     else if (_materials == null || _materials.OutlineResources != resources)
     {
         _materials = resources.CreateMaterialSet();
         _materials.Reset(this);
         _changed = true;
     }
 }
Exemple #2
0
 public void Dispose()
 {
     _materialSet.Dispose();
     UnityEngine.Object.DestroyImmediate(_resources);
 }