protected SpriteSheetAnimationComponent(SKImage image, SpriteSheetAnimationData data) { Image = image; Data = data; SetState(Data.States[0]); UpdateablePart = new UpdateableComponentPart(Update); }
public SkiUiComponent( Node node, CameraComponent camera, Action invalidateSurface ) { Node = node; Camera = camera; _invalidateSurface = invalidateSurface; UpdateablePart = new UpdateableComponentPart(Update); }