Exemplo n.º 1
0
 public void DestroyProjector(UXSprite sprite)
 {
     if (sprite == null)
     {
         return;
     }
     for (int i = 0; i < this.renderInstances.Count; i++)
     {
         GeometryProjector geometryProjector = this.renderInstances[i];
         if (geometryProjector.Config != null && geometryProjector.Config.FrameSprite == sprite)
         {
             geometryProjector.Config.FrameSprite = null;
             geometryProjector.Destroy();
         }
     }
 }
Exemplo n.º 2
0
 public static void OnDefaultAssetFailure(GeometryProjector projector)
 {
     projector.Destroy();
 }