编辑器
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user