コード例 #1
0
 public override void Enter(IItemStates previousState)
 {
     Item.Time.Start();
     Item.IsAnimated = false;
     CurrentState    = this;
     PreviousState   = previousState;
     Item.IsVisible  = false;
     Item.Velocity   = new Vector2(0, 0);
     //Item.MoveAwayFactor = new Vector2(0, 0);
     //Send the item's collision box out of the face of the earth
     //Item.ConsumedPositionFactor = 0;
 }
コード例 #2
0
 public override void Enter(IItemStates previousState)
 {
     CurrentState  = this;
     PreviousState = previousState;
     Item.Color    = Color.White;
 }
コード例 #3
0
ファイル: ItemStates.cs プロジェクト: hooveranna/MarioGame
 public virtual void Enter(IItemStates previousState)
 {
     CurrentState  = this;
     PreviousState = previousState;
 }