Platformer.Player.GotoLevel C# (CSharp) 메소드

GotoLevel() 공개 메소드

public GotoLevel ( int levelIndex ) : void
levelIndex int
리턴 void
        public void GotoLevel(int levelIndex)
        {
            dynamicMap.GotoLevel(levelIndex);
        }

Usage Example

예제 #1
0
파일: Exit.cs 프로젝트: zmthy/play-dead
 // Switch -  the player has to be near and respond to a key press
 public override void ChangeState(Player p, KeyboardState keyState, InputManager inputManager)
 {
     RectangleF other = p.BoundingRectangle;
     Boolean touching = other.Intersects(this.BoundingRectangle);
     if (inputManager.IsNewPress(Keys.E) && touching)
         p.GotoLevel(levelIndex);
 }