예제 #1
0
 public RedMushroomEntity(Vector2 loc, EventSoundEffects sounds) : base(loc, sounds)
 {
     Sounds          = sounds;
     Sound           = EventSoundEffects.EventSounds.CollectPowerUp;
     InitialPos      = loc;
     Sprite          = new RedMushroom(loc);
     EntityCollision = new ItemCollision(this);
     State           = new StandardItemState(this);
     State.NextState = new MovingItemState(this);
 }
예제 #2
0
 public CoinEntity(Vector2 loc, EventSoundEffects sounds) : base(loc, sounds)
 {
     Sounds          = sounds;
     Sound           = EventSoundEffects.EventSounds.CollectCoin;
     InitialPos      = loc;
     Sprite          = new Coin(loc);
     EntityCollision = new ItemCollision(this);
     State           = new StandardItemState(this);
     State.NextState = new StandardItemState(this);
 }