예제 #1
0
파일: ClickEfect.cs 프로젝트: sergik/Cardio
        public static void FillWithMetadata(ClickEfect clickEfect, ClickEffectMetadata metadata, ContentManager contentManager)
        {
            clickEfect.Content = AnimatedObject.FromMetadata(contentManager.Load<AnimatedObjectMetadata>(metadata.ContentPath), contentManager);
            clickEfect.Content.AddAnimationRule("Default", () => true);

            clickEfect.EndSize = metadata.EndSize;
            clickEfect.StartSize = metadata.StartSize;
            clickEfect.TimeAlive = metadata.TimeAlive;
        }
예제 #2
0
파일: ClickEfect.cs 프로젝트: sergik/Cardio
 public static ClickEfect FromMetadata(ClickEffectMetadata metadata, ContentManager contentManager)
 {
     var clickEfect = new ClickEfect();
     FillWithMetadata(clickEfect, metadata, contentManager);
     return clickEfect;
 }