Example map.

pull/2/head
jacky_cai 2022-03-13 21:23:15 -07:00
parent 9cb5f634aa
commit a1233e67d9
4 changed files with 2210 additions and 91 deletions

View File

@ -1,6 +1,6 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &6396886702706006322
--- !u!1 &1189541966
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -8,38 +8,37 @@ GameObject:
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8025601712333247732}
- component: {fileID: 1061622624077730634}
- component: {fileID: 824356684465833447}
- component: {fileID: 1189541967}
- component: {fileID: 1189541968}
m_Layer: 0
m_Name: cell
m_TagString: cell
m_Name: Art
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8025601712333247732
--- !u!4 &1189541967
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6396886702706006322}
m_GameObject: {fileID: 1189541966}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_LocalPosition: {x: 0.002, y: -0.498, z: 0}
m_LocalScale: {x: 0.38809785, y: 0.38944608, z: 0.3745034}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_Father: {fileID: 8025601712333247732}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!212 &1061622624077730634
--- !u!212 &1189541968
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6396886702706006322}
m_GameObject: {fileID: 1189541966}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
@ -74,7 +73,7 @@ SpriteRenderer:
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_Sprite: {fileID: -1930484193, guid: b99b6d296cae2364286050e9198de800, type: 3}
m_Sprite: {fileID: 21300000, guid: da3e6bbb84c179140bc2ea270b6958bd, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
@ -85,6 +84,40 @@ SpriteRenderer:
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!1 &6396886702706006322
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8025601712333247732}
- component: {fileID: 824356684465833447}
- component: {fileID: 479811291}
m_Layer: 0
m_Name: cell
m_TagString: cell
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8025601712333247732
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6396886702706006322}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 1
m_Children:
- {fileID: 1189541967}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!61 &824356684465833447
BoxCollider2D:
m_ObjectHideFlags: 0
@ -109,5 +142,17 @@ BoxCollider2D:
adaptiveTiling: 0
m_AutoTiling: 0
serializedVersion: 2
m_Size: {x: 0.16, y: 0.16}
m_Size: {x: 1, y: 1}
m_EdgeRadius: 0
--- !u!114 &479811291
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6396886702706006322}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7e1c46da2d32eb24a9a852c1d1e43de6, type: 3}
m_Name:
m_EditorClassIdentifier:

8
Assets/Prefabs/Unit.meta Normal file
View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b735c64113a883f48abfaa90a40c4eaa
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -18,7 +18,7 @@ public class cell : MonoBehaviour
private void OnMouseDown()
{
Debug.Log("点击了单元格。");
//Debug.Log("点击了单元格。");
Debug.Log("位置: " + transform.position.x + "," + transform.position.y);
}
}