public void Prepare(ItemBase itemBase, Sprite sprite) { SpriteRenderer = itemBase.SpriteRenderer; SpriteRenderer.sprite = sprite; FallAnimation = itemBase.FallAnimation; FallAnimation.Item = this; }
public void Prepare(ItemBase itemBase, Sprite sprite) { SpriteRenderer = AddSprite(sprite); FallAnimation = itemBase.FallAnimation; FallAnimation.Item = this; }
public RabbitCharacter(int id, int left, int top, int right, int bottom, int weight) : base(id, left, top, right, bottom, weight) { currentAnimation = new FallAnimation(this); }