private void OnGameManagerRefreshTilemapInfo(On.GameManager.orig_RefreshTilemapInfo orig, GameManager self, string targetScene) { orig(self, targetScene); if (targetScene == TransitionGateNames.Tot01) { float width = 192; float height = 64; self.tilemap.width = (int)width; self.tilemap.height = (int)height; self.sceneWidth = width; self.sceneHeight = height; FindObjectOfType <GameMap>().SetManualTilemap(0, 0, width, height); } else if (targetScene == TransitionGateNames.Tot02) { float width = 128; float height = 64; self.tilemap.width = (int)width; self.tilemap.height = (int)height; self.sceneWidth = width; self.sceneHeight = height; FindObjectOfType <GameMap>().SetManualTilemap(0, 0, width, height); } else if (targetScene == TransitionGateNames.Tot03) { float width = 96; float height = 96; self.tilemap.width = (int)width; self.tilemap.height = (int)height; self.sceneWidth = width; self.sceneHeight = height; FindObjectOfType <GameMap>().SetManualTilemap(0, 0, width, height); } else if (targetScene == TransitionGateNames.TotEndless) { float width = 32; float height = 32; self.tilemap.width = (int)width; self.tilemap.height = (int)height; self.sceneWidth = width; self.sceneHeight = height; FindObjectOfType <GameMap>().SetManualTilemap(0, 0, width, height); } else if (targetScene == TransitionGateNames.TotDropdown) { float width = 32; float height = 864; self.tilemap.width = (int)width; self.tilemap.height = (int)height; self.sceneWidth = width; self.sceneHeight = height; FindObjectOfType <GameMap>().SetManualTilemap(0, 0, width, height); } }
private void OnRefreshTileMapInfo(On.GameManager.orig_RefreshTilemapInfo orig, GameManager self, string targetScene) { orig(self, targetScene); if (targetScene == "FloralFury") { self.tilemap.width = 20; self.tilemap.height = 10; self.sceneWidth = 22; self.sceneHeight = 9.5f; } }