Exemplo n.º 1
0
 public void OnDestroy()
 {
     if (context.ClusterCount > 0 && context.VertexCount > 0)
     {
         MCRRenderer.RemoveFromRenderList(this);
         context.Destroy();
         context = null;
     }
 }
Exemplo n.º 2
0
 public void Awake()
 {
     if (context.ClusterCount > 0 && context.VertexCount > 0)
     {
         context.Init(this);
         if (Application.platform == RuntimePlatform.WindowsEditor || Application.platform == RuntimePlatform.WindowsPlayer)
         {
             MCRResourcesSystem.LoadMCRBakeAsset(context);
         }
         MCRRenderer.AddToRenderList(this);
     }
 }