예제 #1
0
 /// <summary>
 /// Constructors a new sprite.
 /// </summary>        
 public PickUpItem(string filePath, string p_ItemType, Vector2 p_Point)
 {
     sprite = new Sprite(GV.ContentManager, filePath);
     Sprite.Scale = 0.40f;
     Position = p_Point;
     itemType = p_ItemType;
     state = new ActiveState(this);
     active = true;
 }
예제 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="state"></param>
 public InActiveState(PickUpState state)
     : this(state.PickUpItem)
 {
 }