本文整理匯總了C#中Animation.autoPopulate方法的典型用法代碼示例。如果您正苦於以下問題:C# Animation.autoPopulate方法的具體用法?C# Animation.autoPopulate怎麽用?C# Animation.autoPopulate使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Animation
的用法示例。
在下文中一共展示了Animation.autoPopulate方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Hitspark
public Hitspark(Vector2 Position, Texture2D texture)
{
Offset = new Vector2(-10, 25);
this.Position = Position + Offset;
Animation animation = new Animation(texture, 0.025f, false);
animation.autoPopulate(new Vector2(102, 60), 10);
sprite.PlayAnimation(animation);
Scale = 1.6f;
}
示例2: LootItem
public LootItem(Vector2 Position, int Level)
{
this.Position = Position;
this.item = GenerateItem(Level);
animation = new Animation(item.Icon.texture, Constants.DefaultFrameTime, true);
animation.autoPopulate(new Vector2(32, 32), 5);
localBounds = new Rectangle(0, 0, item.Icon.texture.Width, item.Icon.texture.Height);
sprite.PlayAnimation(animation);
onTouch += new EventHandler(PickUpItem);
}