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; } }
public static void SetCurrentMap(Portal dest) { nextPortal = dest; state = GameState.Fading; }