上传task
This commit is contained in:
8
Assets/GameAssets/Maps/5.meta
Normal file
8
Assets/GameAssets/Maps/5.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 80f38aa4983c7444a8effa9ab1bd1fe3
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/GameAssets/Maps/5/Texture.meta
Normal file
8
Assets/GameAssets/Maps/5/Texture.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 77a881d19772a3f4f97819bada0e14bc
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/GameAssets/Maps/5/XML.meta
Normal file
8
Assets/GameAssets/Maps/5/XML.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2d568a65ca167a444bc8898d48839ae5
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,3 +1,4 @@
|
||||
using Cysharp.Threading.Tasks;
|
||||
using HxGame;
|
||||
using System;
|
||||
using System.Collections;
|
||||
@@ -80,7 +81,6 @@ public partial class MapManager : MonoBehaviour
|
||||
|
||||
cellsNode[i] = new CellNode(x, y, i, celltype);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
public void LoadMapSprite()
|
||||
@@ -106,12 +106,7 @@ public partial class MapManager : MonoBehaviour
|
||||
float y = (mapRownum - row - 1) * jpgscenew;
|
||||
obj.transform.position = new Vector2(x, y);
|
||||
StartCoroutine(LoadSpriteT(spPath, obj,sr));
|
||||
// ֱ<><D6B1>ʹ<EFBFBD><CAB9>ԭʼ<D4AD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Sprite
|
||||
//sr.sprite = Sprite.Create(asset, new Rect(0, 0, asset.width, asset.height), Vector2.zero, 100f);
|
||||
//float x = col * jpgscenew;
|
||||
//float y = (mapRownum - row - 1) * jpgscenew;
|
||||
//obj.transform.position = new Vector2(x, y);
|
||||
//Debug.Log($"Tile {filename} placed at ({x}, {y})");
|
||||
|
||||
}
|
||||
}
|
||||
MapManager.Instance.ReseCamera(jpgscenew * mapColumn, jpgscenew * mapRownum);
|
||||
|
||||
Reference in New Issue
Block a user