コード例 #1
0
 public Portal(string name, Texture2D texture, bool IsCollision, float i, float j, bool DrawByY, Vector2 colOffset, Vector2 colSize, float portalRow, float portalColumn, Portal Destination, Direction portalDir, TileMap Map)
     : base(name, texture, IsCollision, i, j, DrawByY, colOffset, colSize)
 {
     map             = Map;
     isDrawName      = true;
     portalI         = portalRow;
     portalJ         = portalColumn;
     PortalDirection = portalDir;
     if (Destination != null)
     {
         this.Destination             = Destination;
         this.Destination.Destination = this;
     }
 }
コード例 #2
0
 public static void SetCurrentMap(Portal dest)
 {
     nextPortal = dest;
     state      = GameState.Fading;
 }