编辑器

This commit is contained in:
tangbin
2025-11-18 10:11:56 +08:00
parent 841a08f40e
commit 5af3e15719
89 changed files with 6430 additions and 19 deletions

View File

@@ -213,7 +213,9 @@ public partial class MapManager : MonoBehaviour
{
if(_curMapRegions == null) return;
float jpgscenew = PicMapPixel / 100.0f;
MapManager.Instance.GenerateMap(mapid, jpgscenew * _curMapRegions.regionRowNum, jpgscenew * _curMapRegions.regionColNum, _curMapRegions.cellWidthPixel / 100.0f, _curMapRegions.cellHeightPixel / 100.0f);
int horizontalNumber = Mathf.FloorToInt((jpgscenew * _curMapRegions.regionRowNum) / (_curMapRegions.cellWidthPixel / 100.0f));
int verticalNumber = Mathf.FloorToInt((jpgscenew * _curMapRegions.regionColNum) / (_curMapRegions.cellHeightPixel / 100.0f));
MapManager.Instance.GenerateMap(mapid, horizontalNumber, verticalNumber, _curMapRegions.cellWidthPixel / 100.0f, _curMapRegions.cellHeightPixel / 100.0f);
}
private async void multithreadLoadTextrue(string fullPath,SpriteRenderer sr, HxGame.Data.Region region)
{