Esempio n. 1
0
        protected SpriteSheetAnimationComponent(SKImage image, SpriteSheetAnimationData data)
        {
            Image = image;
            Data  = data;

            SetState(Data.States[0]);

            UpdateablePart = new UpdateableComponentPart(Update);
        }
Esempio n. 2
0
 public SkiUiComponent(
     Node node,
     CameraComponent camera,
     Action invalidateSurface
     )
 {
     Node               = node;
     Camera             = camera;
     _invalidateSurface = invalidateSurface;
     UpdateablePart     = new UpdateableComponentPart(Update);
 }