瀏覽代碼

生成敌人

zhaochengyang 5 年之前
父節點
當前提交
2de01699bc
共有 49 個文件被更改,包括 989 次插入461 次删除
  1. 7 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/05132f2c030d93383cd4a41d10cdca7670d4a526
  2. 5 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/14e6f8f185dd82e1c8efa76c062754a2a6f8e3ee
  3. 9 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/2e80c90af86e6cce5603ea2444e912018b12b840
  4. 1 1
      .rpt2_cache/rpt2_817333419d54cf6abb96f886dff7a88eb3cc0b8d/code/cache/dd24dc01d3844eeff2505c07f11c6afeb107340c
  5. 13 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/4039d0de4694f1013c03ef0b8dad380d77ed8d01
  6. 8 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/48fbb9ab42ccc91f47f15c159c1ea3094f921460
  7. 9 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/54e46cfbafe6d84a406ee65855cd97a19c37b199
  8. 9 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/5b835ea7daf461357b9b6284c41c7db56202f29b
  9. 5 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/6194ea556ffffda65ca180c6f9ca51042611ef7d
  10. 5 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/89a5842a4a051668bca138abc012f6a7b2ede672
  11. 8 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/902a62d02f5949efbb4fde76de4c2dd1a7215051
  12. 9 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/94123e2d61edfe9ae3ed00fd2ef6b18c7e30b019
  13. 8 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/a73a469893619c461f64dece396a69caf072cea8
  14. 5 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/a7f445059bf4f11725460f1a237f91e80e0a86c8
  15. 5 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/ccf72d385450c92465dc25fe6e41b7c6cf3ac333
  16. 5 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/d2b0e0a988e056422722bc84f2355c19861874ab
  17. 11 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/eb56dd7e2fa29d552382254e456c5de9b886839b
  18. 0 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/types/cache/3f558ce48612bafba502ff3b8557baab212909b4
  19. 0 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/types/cache/6cf4bb4444db2bbf6964b0e8539c4b587c026930
  20. 0 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/types/cache/9685fff06fb7cd5e8ed016ad72117a11b1d2770a
  21. 0 0
      .rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/types/cache/abf97459aa245246e1b0f736531c953e9189c23e
  22. 0 11
      .rpt2_cache/rpt2_817333419d54cf6abb96f886dff7a88eb3cc0b8d/code/cache/0f4bab1757f5d47a3e5e0903bc2ebaddf9b78392
  23. 9 0
      .rpt2_cache/rpt2_817333419d54cf6abb96f886dff7a88eb3cc0b8d/code/cache/2f4acd1b0553b5a4d0b3e96a3f2ad684aebeb1d0
  24. 12 0
      .rpt2_cache/rpt2_817333419d54cf6abb96f886dff7a88eb3cc0b8d/code/cache/941edba87909897223c622bdf8e44be1ce70e0cb
  25. 0 11
      .rpt2_cache/rpt2_817333419d54cf6abb96f886dff7a88eb3cc0b8d/code/cache/b99ed32b5daec0d479e05454f1e21aeda28b1d3c
  26. 11 0
      .rpt2_cache/rpt2_817333419d54cf6abb96f886dff7a88eb3cc0b8d/code/cache/fb840245f3f8ea8807cc10bdb5e1877d3bf638b6
  27. 3 17
      bin/Game/res/MainScene/LayaScene_Mainscene/Conventional/Assets/ArcherAsset/Mesh/Materials/grass.lmat
  28. 24 2
      bin/Game/res/MainScene/LayaScene_Mainscene/Conventional/Mainscene.ls
  29. 1 1
      bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Horse/Materials/Horse_ORG_1k.lmat
  30. 2 2
      bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Ragdoll _5741/Materials/ragdoll.lmat
  31. 二進制
      bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-Happy Idle.lani
  32. 二進制
      bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-Idle.lani
  33. 二進制
      bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-JumpOver.lani
  34. 二進制
      bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-Stable Sword Outward Slash.lani
  35. 二進制
      bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-Victory Idle.lani
  36. 二進制
      bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-run.lani
  37. 二進制
      bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-walk.lani
  38. 二進制
      bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-wave.lani
  39. 103 103
      bin/Game/res/Role/LayaScene_Role/Conventional/Horse.lh
  40. 218 129
      bin/Game/res/Role/LayaScene_Role/Conventional/enemy.lh
  41. 121 121
      bin/Game/res/Role/LayaScene_Role/Conventional/player.lh
  42. 154 16
      bin/js/bundle.js
  43. 1 1
      bin/js/bundle.js.map
  44. 35 20
      src/Game/GameManager.ts
  45. 25 0
      src/Game/NpcControl.ts
  46. 120 0
      src/Game/NpcRunner.ts
  47. 17 26
      src/Game/Runner.ts
  48. 3 0
      src/Tools/AssetManager.ts
  49. 8 0
      src/Tools/GameTools.ts

File diff suppressed because it is too large
+ 7 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/05132f2c030d93383cd4a41d10cdca7670d4a526


File diff suppressed because it is too large
+ 5 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/14e6f8f185dd82e1c8efa76c062754a2a6f8e3ee


File diff suppressed because it is too large
+ 9 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/2e80c90af86e6cce5603ea2444e912018b12b840


File diff suppressed because it is too large
+ 1 - 1
.rpt2_cache/rpt2_817333419d54cf6abb96f886dff7a88eb3cc0b8d/code/cache/dd24dc01d3844eeff2505c07f11c6afeb107340c


File diff suppressed because it is too large
+ 13 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/4039d0de4694f1013c03ef0b8dad380d77ed8d01


File diff suppressed because it is too large
+ 8 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/48fbb9ab42ccc91f47f15c159c1ea3094f921460


File diff suppressed because it is too large
+ 9 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/54e46cfbafe6d84a406ee65855cd97a19c37b199


File diff suppressed because it is too large
+ 9 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/5b835ea7daf461357b9b6284c41c7db56202f29b


File diff suppressed because it is too large
+ 5 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/6194ea556ffffda65ca180c6f9ca51042611ef7d


File diff suppressed because it is too large
+ 5 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/89a5842a4a051668bca138abc012f6a7b2ede672


File diff suppressed because it is too large
+ 8 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/902a62d02f5949efbb4fde76de4c2dd1a7215051


File diff suppressed because it is too large
+ 9 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/94123e2d61edfe9ae3ed00fd2ef6b18c7e30b019


File diff suppressed because it is too large
+ 8 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/a73a469893619c461f64dece396a69caf072cea8


File diff suppressed because it is too large
+ 5 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/a7f445059bf4f11725460f1a237f91e80e0a86c8


File diff suppressed because it is too large
+ 5 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/ccf72d385450c92465dc25fe6e41b7c6cf3ac333


File diff suppressed because it is too large
+ 5 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/d2b0e0a988e056422722bc84f2355c19861874ab


File diff suppressed because it is too large
+ 11 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/code/cache/eb56dd7e2fa29d552382254e456c5de9b886839b


+ 0 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/types/cache/3f558ce48612bafba502ff3b8557baab212909b4


+ 0 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/types/cache/6cf4bb4444db2bbf6964b0e8539c4b587c026930


+ 0 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/types/cache/9685fff06fb7cd5e8ed016ad72117a11b1d2770a


+ 0 - 0
.rpt2_cache/rpt2_661b224f6cdba7a2f2c96d2e248f47206dc9552b/types/cache/abf97459aa245246e1b0f736531c953e9189c23e


File diff suppressed because it is too large
+ 0 - 11
.rpt2_cache/rpt2_817333419d54cf6abb96f886dff7a88eb3cc0b8d/code/cache/0f4bab1757f5d47a3e5e0903bc2ebaddf9b78392


File diff suppressed because it is too large
+ 9 - 0
.rpt2_cache/rpt2_817333419d54cf6abb96f886dff7a88eb3cc0b8d/code/cache/2f4acd1b0553b5a4d0b3e96a3f2ad684aebeb1d0


File diff suppressed because it is too large
+ 12 - 0
.rpt2_cache/rpt2_817333419d54cf6abb96f886dff7a88eb3cc0b8d/code/cache/941edba87909897223c622bdf8e44be1ce70e0cb


File diff suppressed because it is too large
+ 0 - 11
.rpt2_cache/rpt2_817333419d54cf6abb96f886dff7a88eb3cc0b8d/code/cache/b99ed32b5daec0d479e05454f1e21aeda28b1d3c


File diff suppressed because it is too large
+ 11 - 0
.rpt2_cache/rpt2_817333419d54cf6abb96f886dff7a88eb3cc0b8d/code/cache/fb840245f3f8ea8807cc10bdb5e1877d3bf638b6


+ 3 - 17
bin/Game/res/MainScene/LayaScene_Mainscene/Conventional/Assets/ArcherAsset/Mesh/Materials/grass.lmat

@@ -1,7 +1,7 @@
 {
 	"version":"LAYAMATERIAL:02",
 	"props":{
-		"type":"Laya.BlinnPhongMaterial",
+		"type":"Laya.UnlitMaterial",
 		"name":"grass",
 		"renderStates":[
 			{
@@ -13,16 +13,11 @@
 				"depthTest":515
 			}
 		],
+		"enableVertexColor":false,
 		"alphaTest":false,
 		"alphaTestValue":0.5,
 		"renderQueue":2000,
-		"metallic":0,
-		"smoothness":0.5,
-		"smoothnessTextureScale":1,
-		"smoothnessSource":0,
-		"normalTextureScale":1,
-		"parallaxTextureScale":0.02,
-		"occlusionTextureStrength":1,
+		"albedoIntensity":1.32,
 		"textures":[
 			{
 				"name":"albedoTexture",
@@ -59,15 +54,6 @@
 					1,
 					1
 				]
-			},
-			{
-				"name":"emissionColor",
-				"value":[
-					0,
-					0,
-					0,
-					1
-				]
 			}
 		],
 		"defines":[]

+ 24 - 2
bin/Game/res/MainScene/LayaScene_Mainscene/Conventional/Mainscene.ls

@@ -157,12 +157,34 @@
 							"enableRender":true,
 							"materials":[
 								{
-									"type":"Laya.BlinnPhongMaterial",
 									"path":"Assets/ArcherAsset/Mesh/Materials/grass.lmat"
 								}
 							]
 						},
-						"components":[],
+						"components":[
+							{
+								"type":"PhysicsCollider",
+								"restitution":0,
+								"friction":0.5,
+								"rollingFriction":0,
+								"shapes":[
+									{
+										"type":"BoxColliderShape",
+										"center":[
+											0,
+											0,
+											0
+										],
+										"size":[
+											10,
+											2.220446E-16,
+											10
+										]
+									}
+								],
+								"isTrigger":false
+							}
+						],
 						"child":[]
 					}
 				]

+ 1 - 1
bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Horse/Materials/Horse_ORG_1k.lmat

@@ -19,7 +19,7 @@
 		"renderQueue":3000,
 		"albedoIntensity":1,
 		"enableLighting":true,
-		"shininess":0.078125,
+		"shininess":0.049,
 		"textures":[
 			{
 				"name":"albedoTexture",

+ 2 - 2
bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Ragdoll _5741/Materials/ragdoll.lmat

@@ -16,8 +16,8 @@
 		"enableVertexColor":false,
 		"alphaTest":false,
 		"alphaTestValue":0.5,
-		"renderQueue":3000,
-		"albedoIntensity":1,
+		"renderQueue":2000,
+		"albedoIntensity":1.03,
 		"enableLighting":true,
 		"shininess":0.078125,
 		"textures":[],

二進制
bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-Happy Idle.lani


二進制
bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-Idle.lani


二進制
bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-JumpOver.lani


二進制
bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-Stable Sword Outward Slash.lani


二進制
bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-Victory Idle.lani


二進制
bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-run.lani


二進制
bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-walk.lani


二進制
bin/Game/res/Role/LayaScene_Role/Conventional/Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-wave.lani


+ 103 - 103
bin/Game/res/Role/LayaScene_Role/Conventional/Horse.lh

@@ -2,7 +2,7 @@
 	"version":"LAYAHIERARCHY:02",
 	"data":{
 		"type":"Sprite3D",
-		"instanceID":0,
+		"instanceID":145,
 		"props":{
 			"name":"Horse",
 			"active":true,
@@ -64,7 +64,7 @@
 		"child":[
 			{
 				"type":"Sprite3D",
-				"instanceID":1,
+				"instanceID":146,
 				"props":{
 					"name":"Horse",
 					"active":true,
@@ -91,7 +91,7 @@
 				"child":[
 					{
 						"type":"Sprite3D",
-						"instanceID":2,
+						"instanceID":147,
 						"props":{
 							"name":"RotateHelper",
 							"active":true,
@@ -118,7 +118,7 @@
 						"child":[
 							{
 								"type":"Sprite3D",
-								"instanceID":3,
+								"instanceID":148,
 								"props":{
 									"name":"Geometry",
 									"active":true,
@@ -145,7 +145,7 @@
 								"child":[
 									{
 										"type":"SkinnedMeshSprite3D",
-										"instanceID":4,
+										"instanceID":149,
 										"props":{
 											"name":"actor:Horse",
 											"active":true,
@@ -167,7 +167,7 @@
 												1,
 												1
 											],
-											"rootBone":5,
+											"rootBone":150,
 											"boundBox":{
 												"min":[
 													-0.7722098,
@@ -189,50 +189,50 @@
 												"radius":1.900382
 											},
 											"bones":[
-												5,
-												6,
-												7,
-												8,
-												9,
-												10,
-												11,
-												12,
-												13,
-												14,
-												15,
-												16,
-												17,
-												18,
-												19,
-												20,
-												21,
-												22,
-												23,
-												24,
-												25,
-												26,
-												27,
-												28,
-												29,
-												30,
-												31,
-												32,
-												33,
-												34,
-												35,
-												36,
-												37,
-												38,
-												39,
-												40,
-												41,
-												42,
-												43,
-												44,
-												45,
-												46,
-												47,
-												48
+												150,
+												151,
+												152,
+												153,
+												154,
+												155,
+												156,
+												157,
+												158,
+												159,
+												160,
+												161,
+												162,
+												163,
+												164,
+												165,
+												166,
+												167,
+												168,
+												169,
+												170,
+												171,
+												172,
+												173,
+												174,
+												175,
+												176,
+												177,
+												178,
+												179,
+												180,
+												181,
+												182,
+												183,
+												184,
+												185,
+												186,
+												187,
+												188,
+												189,
+												190,
+												191,
+												192,
+												193
 											],
 											"materials":[
 												{
@@ -248,7 +248,7 @@
 							},
 							{
 								"type":"Sprite3D",
-								"instanceID":49,
+								"instanceID":194,
 								"props":{
 									"name":"Main",
 									"active":true,
@@ -275,7 +275,7 @@
 								"child":[
 									{
 										"type":"Sprite3D",
-										"instanceID":50,
+										"instanceID":195,
 										"props":{
 											"name":"DeformationSystem",
 											"active":true,
@@ -302,7 +302,7 @@
 										"child":[
 											{
 												"type":"Sprite3D",
-												"instanceID":5,
+												"instanceID":150,
 												"props":{
 													"name":"Root_M",
 													"active":true,
@@ -329,7 +329,7 @@
 												"child":[
 													{
 														"type":"Sprite3D",
-														"instanceID":43,
+														"instanceID":188,
 														"props":{
 															"name":"Hip_L",
 															"active":true,
@@ -356,7 +356,7 @@
 														"child":[
 															{
 																"type":"Sprite3D",
-																"instanceID":44,
+																"instanceID":189,
 																"props":{
 																	"name":"Knee_L",
 																	"active":true,
@@ -383,7 +383,7 @@
 																"child":[
 																	{
 																		"type":"Sprite3D",
-																		"instanceID":48,
+																		"instanceID":193,
 																		"props":{
 																			"name":"Ankle_L",
 																			"active":true,
@@ -410,7 +410,7 @@
 																		"child":[
 																			{
 																				"type":"Sprite3D",
-																				"instanceID":45,
+																				"instanceID":190,
 																				"props":{
 																					"name":"Toes1_L",
 																					"active":true,
@@ -437,7 +437,7 @@
 																				"child":[
 																					{
 																						"type":"Sprite3D",
-																						"instanceID":46,
+																						"instanceID":191,
 																						"props":{
 																							"name":"Toes2_L",
 																							"active":true,
@@ -464,7 +464,7 @@
 																						"child":[
 																							{
 																								"type":"Sprite3D",
-																								"instanceID":47,
+																								"instanceID":192,
 																								"props":{
 																									"name":"Toes3_L",
 																									"active":true,
@@ -491,7 +491,7 @@
 																								"child":[
 																									{
 																										"type":"Sprite3D",
-																										"instanceID":51,
+																										"instanceID":196,
 																										"props":{
 																											"name":"Toes4_L",
 																											"active":true,
@@ -531,7 +531,7 @@
 													},
 													{
 														"type":"Sprite3D",
-														"instanceID":34,
+														"instanceID":179,
 														"props":{
 															"name":"Hip_R",
 															"active":true,
@@ -558,7 +558,7 @@
 														"child":[
 															{
 																"type":"Sprite3D",
-																"instanceID":32,
+																"instanceID":177,
 																"props":{
 																	"name":"Knee_R",
 																	"active":true,
@@ -585,7 +585,7 @@
 																"child":[
 																	{
 																		"type":"Sprite3D",
-																		"instanceID":31,
+																		"instanceID":176,
 																		"props":{
 																			"name":"Ankle_R",
 																			"active":true,
@@ -612,7 +612,7 @@
 																		"child":[
 																			{
 																				"type":"Sprite3D",
-																				"instanceID":36,
+																				"instanceID":181,
 																				"props":{
 																					"name":"Toes1_R",
 																					"active":true,
@@ -639,7 +639,7 @@
 																				"child":[
 																					{
 																						"type":"Sprite3D",
-																						"instanceID":38,
+																						"instanceID":183,
 																						"props":{
 																							"name":"Toes2_R",
 																							"active":true,
@@ -666,7 +666,7 @@
 																						"child":[
 																							{
 																								"type":"Sprite3D",
-																								"instanceID":42,
+																								"instanceID":187,
 																								"props":{
 																									"name":"Toes3_R",
 																									"active":true,
@@ -693,7 +693,7 @@
 																								"child":[
 																									{
 																										"type":"Sprite3D",
-																										"instanceID":52,
+																										"instanceID":197,
 																										"props":{
 																											"name":"Toes4_R",
 																											"active":true,
@@ -733,7 +733,7 @@
 													},
 													{
 														"type":"Sprite3D",
-														"instanceID":10,
+														"instanceID":155,
 														"props":{
 															"name":"Spine1_2_M",
 															"active":true,
@@ -760,7 +760,7 @@
 														"child":[
 															{
 																"type":"Sprite3D",
-																"instanceID":8,
+																"instanceID":153,
 																"props":{
 																	"name":"Spine1_M",
 																	"active":true,
@@ -787,7 +787,7 @@
 																"child":[
 																	{
 																		"type":"Sprite3D",
-																		"instanceID":9,
+																		"instanceID":154,
 																		"props":{
 																			"name":"Chest_M",
 																			"active":true,
@@ -814,7 +814,7 @@
 																		"child":[
 																			{
 																				"type":"Sprite3D",
-																				"instanceID":11,
+																				"instanceID":156,
 																				"props":{
 																					"name":"Neck_M",
 																					"active":true,
@@ -841,7 +841,7 @@
 																				"child":[
 																					{
 																						"type":"Sprite3D",
-																						"instanceID":6,
+																						"instanceID":151,
 																						"props":{
 																							"name":"Neck2_M",
 																							"active":true,
@@ -868,7 +868,7 @@
 																						"child":[
 																							{
 																								"type":"Sprite3D",
-																								"instanceID":12,
+																								"instanceID":157,
 																								"props":{
 																									"name":"Neck3_M",
 																									"active":true,
@@ -895,7 +895,7 @@
 																								"child":[
 																									{
 																										"type":"Sprite3D",
-																										"instanceID":13,
+																										"instanceID":158,
 																										"props":{
 																											"name":"Neck4_M",
 																											"active":true,
@@ -922,7 +922,7 @@
 																										"child":[
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":7,
+																												"instanceID":152,
 																												"props":{
 																													"name":"Head_M",
 																													"active":true,
@@ -949,7 +949,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":25,
+																														"instanceID":170,
 																														"props":{
 																															"name":"joint1_L",
 																															"active":true,
@@ -976,7 +976,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":17,
+																																"instanceID":162,
 																																"props":{
 																																	"name":"joint2_L",
 																																	"active":true,
@@ -1003,7 +1003,7 @@
 																																"child":[
 																																	{
 																																		"type":"Sprite3D",
-																																		"instanceID":53,
+																																		"instanceID":198,
 																																		"props":{
 																																			"name":"joint3_L",
 																																			"active":true,
@@ -1035,7 +1035,7 @@
 																													},
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":19,
+																														"instanceID":164,
 																														"props":{
 																															"name":"joint1_R",
 																															"active":true,
@@ -1062,7 +1062,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":23,
+																																"instanceID":168,
 																																"props":{
 																																	"name":"joint2_R",
 																																	"active":true,
@@ -1089,7 +1089,7 @@
 																																"child":[
 																																	{
 																																		"type":"Sprite3D",
-																																		"instanceID":54,
+																																		"instanceID":199,
 																																		"props":{
 																																			"name":"joint3_R",
 																																			"active":true,
@@ -1131,7 +1131,7 @@
 																			},
 																			{
 																				"type":"Sprite3D",
-																				"instanceID":21,
+																				"instanceID":166,
 																				"props":{
 																					"name":"Scapula_L",
 																					"active":true,
@@ -1158,7 +1158,7 @@
 																				"child":[
 																					{
 																						"type":"Sprite3D",
-																						"instanceID":28,
+																						"instanceID":173,
 																						"props":{
 																							"name":"Shoulder_L",
 																							"active":true,
@@ -1185,7 +1185,7 @@
 																						"child":[
 																							{
 																								"type":"Sprite3D",
-																								"instanceID":18,
+																								"instanceID":163,
 																								"props":{
 																									"name":"Elbow_L",
 																									"active":true,
@@ -1212,7 +1212,7 @@
 																								"child":[
 																									{
 																										"type":"Sprite3D",
-																										"instanceID":29,
+																										"instanceID":174,
 																										"props":{
 																											"name":"Wrist_L",
 																											"active":true,
@@ -1239,7 +1239,7 @@
 																										"child":[
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":30,
+																												"instanceID":175,
 																												"props":{
 																													"name":"Fingers1_L",
 																													"active":true,
@@ -1266,7 +1266,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":20,
+																														"instanceID":165,
 																														"props":{
 																															"name":"Fingers2_L",
 																															"active":true,
@@ -1293,7 +1293,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":35,
+																																"instanceID":180,
 																																"props":{
 																																	"name":"Fingers3_L",
 																																	"active":true,
@@ -1320,7 +1320,7 @@
 																																"child":[
 																																	{
 																																		"type":"Sprite3D",
-																																		"instanceID":55,
+																																		"instanceID":200,
 																																		"props":{
 																																			"name":"Fingers4_L",
 																																			"active":true,
@@ -1362,7 +1362,7 @@
 																			},
 																			{
 																				"type":"Sprite3D",
-																				"instanceID":24,
+																				"instanceID":169,
 																				"props":{
 																					"name":"Scapula_R",
 																					"active":true,
@@ -1389,7 +1389,7 @@
 																				"child":[
 																					{
 																						"type":"Sprite3D",
-																						"instanceID":14,
+																						"instanceID":159,
 																						"props":{
 																							"name":"Shoulder_R",
 																							"active":true,
@@ -1416,7 +1416,7 @@
 																						"child":[
 																							{
 																								"type":"Sprite3D",
-																								"instanceID":22,
+																								"instanceID":167,
 																								"props":{
 																									"name":"Elbow_R",
 																									"active":true,
@@ -1443,7 +1443,7 @@
 																								"child":[
 																									{
 																										"type":"Sprite3D",
-																										"instanceID":26,
+																										"instanceID":171,
 																										"props":{
 																											"name":"Wrist_R",
 																											"active":true,
@@ -1470,7 +1470,7 @@
 																										"child":[
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":15,
+																												"instanceID":160,
 																												"props":{
 																													"name":"Fingers1_R",
 																													"active":true,
@@ -1497,7 +1497,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":16,
+																														"instanceID":161,
 																														"props":{
 																															"name":"Fingers2_R",
 																															"active":true,
@@ -1524,7 +1524,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":27,
+																																"instanceID":172,
 																																"props":{
 																																	"name":"Fingers3_R",
 																																	"active":true,
@@ -1551,7 +1551,7 @@
 																																"child":[
 																																	{
 																																		"type":"Sprite3D",
-																																		"instanceID":56,
+																																		"instanceID":201,
 																																		"props":{
 																																			"name":"Fingers4_R",
 																																			"active":true,
@@ -1599,7 +1599,7 @@
 													},
 													{
 														"type":"Sprite3D",
-														"instanceID":37,
+														"instanceID":182,
 														"props":{
 															"name":"Tail0_M",
 															"active":true,
@@ -1626,7 +1626,7 @@
 														"child":[
 															{
 																"type":"Sprite3D",
-																"instanceID":39,
+																"instanceID":184,
 																"props":{
 																	"name":"Tail1_M",
 																	"active":true,
@@ -1653,7 +1653,7 @@
 																"child":[
 																	{
 																		"type":"Sprite3D",
-																		"instanceID":40,
+																		"instanceID":185,
 																		"props":{
 																			"name":"Tail2_M",
 																			"active":true,
@@ -1680,7 +1680,7 @@
 																		"child":[
 																			{
 																				"type":"Sprite3D",
-																				"instanceID":41,
+																				"instanceID":186,
 																				"props":{
 																					"name":"Tail3_M",
 																					"active":true,
@@ -1707,7 +1707,7 @@
 																				"child":[
 																					{
 																						"type":"Sprite3D",
-																						"instanceID":33,
+																						"instanceID":178,
 																						"props":{
 																							"name":"Tail4_M",
 																							"active":true,
@@ -1734,7 +1734,7 @@
 																						"child":[
 																							{
 																								"type":"Sprite3D",
-																								"instanceID":57,
+																								"instanceID":202,
 																								"props":{
 																									"name":"Tail5_M",
 																									"active":true,

+ 218 - 129
bin/Game/res/Role/LayaScene_Role/Conventional/enemy.lh

@@ -2,14 +2,14 @@
 	"version":"LAYAHIERARCHY:02",
 	"data":{
 		"type":"Sprite3D",
-		"instanceID":132,
+		"instanceID":0,
 		"props":{
 			"name":"enemy",
 			"active":true,
 			"isStatic":false,
 			"layer":0,
 			"position":[
-				0,
+				2.509,
 				0,
 				0
 			],
@@ -20,15 +20,55 @@
 				-1
 			],
 			"scale":[
-				1,
-				1,
-				1
+				1.5,
+				1.5,
+				1.5
 			]
 		},
 		"components":[
 			{
 				"type":"Animator",
-				"layers":[],
+				"layers":[
+					{
+						"name":"Base Layer",
+						"weight":0,
+						"blendingMode":0,
+						"states":[
+							{
+								"name":"Idle",
+								"clipPath":"Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-Idle.lani"
+							},
+							{
+								"name":"Happy Idle",
+								"clipPath":"Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-Happy Idle.lani"
+							},
+							{
+								"name":"JumpOver",
+								"clipPath":"Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-JumpOver.lani"
+							},
+							{
+								"name":"run",
+								"clipPath":"Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-run.lani"
+							},
+							{
+								"name":"Stable Sword Outward Slash",
+								"clipPath":"Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-Stable Sword Outward Slash.lani"
+							},
+							{
+								"name":"Victory Idle",
+								"clipPath":"Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-Victory Idle.lani"
+							},
+							{
+								"name":"walk",
+								"clipPath":"Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-walk.lani"
+							},
+							{
+								"name":"wave",
+								"clipPath":"Assets/ArcherAsset/Animator/Ragdoll _5741/Ragdoll _5741-wave.lani"
+							}
+						]
+					}
+				],
 				"cullingMode":0,
 				"playOnWake":true
 			}
@@ -36,7 +76,7 @@
 		"child":[
 			{
 				"type":"Sprite3D",
-				"instanceID":133,
+				"instanceID":1,
 				"props":{
 					"name":"Ragdoll",
 					"active":true,
@@ -63,7 +103,7 @@
 				"child":[
 					{
 						"type":"Sprite3D",
-						"instanceID":134,
+						"instanceID":2,
 						"props":{
 							"name":"Bip001",
 							"active":true,
@@ -90,7 +130,7 @@
 						"child":[
 							{
 								"type":"Sprite3D",
-								"instanceID":135,
+								"instanceID":3,
 								"props":{
 									"name":"Bip001 Footsteps",
 									"active":true,
@@ -118,7 +158,7 @@
 							},
 							{
 								"type":"Sprite3D",
-								"instanceID":136,
+								"instanceID":4,
 								"props":{
 									"name":"Bip001 Pelvis",
 									"active":true,
@@ -145,7 +185,7 @@
 								"child":[
 									{
 										"type":"Sprite3D",
-										"instanceID":137,
+										"instanceID":5,
 										"props":{
 											"name":"Bip001 Spine",
 											"active":true,
@@ -172,7 +212,7 @@
 										"child":[
 											{
 												"type":"Sprite3D",
-												"instanceID":138,
+												"instanceID":6,
 												"props":{
 													"name":"Bip001 L Thigh",
 													"active":true,
@@ -199,7 +239,7 @@
 												"child":[
 													{
 														"type":"Sprite3D",
-														"instanceID":139,
+														"instanceID":7,
 														"props":{
 															"name":"Bip001 L Calf",
 															"active":true,
@@ -226,7 +266,7 @@
 														"child":[
 															{
 																"type":"Sprite3D",
-																"instanceID":140,
+																"instanceID":8,
 																"props":{
 																	"name":"Bip001 L Foot",
 																	"active":true,
@@ -253,7 +293,7 @@
 																"child":[
 																	{
 																		"type":"Sprite3D",
-																		"instanceID":141,
+																		"instanceID":9,
 																		"props":{
 																			"name":"Bip001 L Toe0",
 																			"active":true,
@@ -280,7 +320,7 @@
 																		"child":[
 																			{
 																				"type":"Sprite3D",
-																				"instanceID":142,
+																				"instanceID":10,
 																				"props":{
 																					"name":"Bip001 L Toe0Nub",
 																					"active":true,
@@ -316,7 +356,7 @@
 											},
 											{
 												"type":"Sprite3D",
-												"instanceID":143,
+												"instanceID":11,
 												"props":{
 													"name":"Bip001 R Thigh",
 													"active":true,
@@ -343,7 +383,7 @@
 												"child":[
 													{
 														"type":"Sprite3D",
-														"instanceID":144,
+														"instanceID":12,
 														"props":{
 															"name":"Bip001 R Calf",
 															"active":true,
@@ -370,7 +410,7 @@
 														"child":[
 															{
 																"type":"Sprite3D",
-																"instanceID":145,
+																"instanceID":13,
 																"props":{
 																	"name":"Bip001 R Foot",
 																	"active":true,
@@ -397,7 +437,7 @@
 																"child":[
 																	{
 																		"type":"Sprite3D",
-																		"instanceID":146,
+																		"instanceID":14,
 																		"props":{
 																			"name":"Bip001 R Toe0",
 																			"active":true,
@@ -424,7 +464,7 @@
 																		"child":[
 																			{
 																				"type":"Sprite3D",
-																				"instanceID":147,
+																				"instanceID":15,
 																				"props":{
 																					"name":"Bip001 R Toe0Nub",
 																					"active":true,
@@ -460,7 +500,7 @@
 											},
 											{
 												"type":"Sprite3D",
-												"instanceID":148,
+												"instanceID":16,
 												"props":{
 													"name":"Bip001 Spine1",
 													"active":true,
@@ -487,7 +527,7 @@
 												"child":[
 													{
 														"type":"Sprite3D",
-														"instanceID":149,
+														"instanceID":17,
 														"props":{
 															"name":"Bip001 Spine2",
 															"active":true,
@@ -514,7 +554,7 @@
 														"child":[
 															{
 																"type":"Sprite3D",
-																"instanceID":150,
+																"instanceID":18,
 																"props":{
 																	"name":"Bip001 Neck",
 																	"active":true,
@@ -541,7 +581,7 @@
 																"child":[
 																	{
 																		"type":"Sprite3D",
-																		"instanceID":151,
+																		"instanceID":19,
 																		"props":{
 																			"name":"Bip001 Head",
 																			"active":true,
@@ -568,7 +608,7 @@
 																		"child":[
 																			{
 																				"type":"Sprite3D",
-																				"instanceID":152,
+																				"instanceID":20,
 																				"props":{
 																					"name":"Bip001 HeadNub",
 																					"active":true,
@@ -598,7 +638,7 @@
 																	},
 																	{
 																		"type":"Sprite3D",
-																		"instanceID":153,
+																		"instanceID":21,
 																		"props":{
 																			"name":"Bip001 L Clavicle",
 																			"active":true,
@@ -625,7 +665,7 @@
 																		"child":[
 																			{
 																				"type":"Sprite3D",
-																				"instanceID":154,
+																				"instanceID":22,
 																				"props":{
 																					"name":"Bip001 L UpperArm",
 																					"active":true,
@@ -652,7 +692,7 @@
 																				"child":[
 																					{
 																						"type":"Sprite3D",
-																						"instanceID":155,
+																						"instanceID":23,
 																						"props":{
 																							"name":"Bip001 L Forearm",
 																							"active":true,
@@ -679,7 +719,7 @@
 																						"child":[
 																							{
 																								"type":"Sprite3D",
-																								"instanceID":156,
+																								"instanceID":24,
 																								"props":{
 																									"name":"Bip001 L Hand",
 																									"active":true,
@@ -706,7 +746,7 @@
 																								"child":[
 																									{
 																										"type":"Sprite3D",
-																										"instanceID":157,
+																										"instanceID":25,
 																										"props":{
 																											"name":"Bip001 L Finger0",
 																											"active":true,
@@ -733,7 +773,7 @@
 																										"child":[
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":158,
+																												"instanceID":26,
 																												"props":{
 																													"name":"Bip001 L Finger01",
 																													"active":true,
@@ -760,7 +800,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":159,
+																														"instanceID":27,
 																														"props":{
 																															"name":"Bip001 L Finger02",
 																															"active":true,
@@ -787,7 +827,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":160,
+																																"instanceID":28,
 																																"props":{
 																																	"name":"Bip001 L Finger0Nub",
 																																	"active":true,
@@ -821,7 +861,7 @@
 																									},
 																									{
 																										"type":"Sprite3D",
-																										"instanceID":161,
+																										"instanceID":29,
 																										"props":{
 																											"name":"Bip001 L Finger1",
 																											"active":true,
@@ -848,7 +888,7 @@
 																										"child":[
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":162,
+																												"instanceID":30,
 																												"props":{
 																													"name":"Bip001 L Finger11",
 																													"active":true,
@@ -875,7 +915,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":163,
+																														"instanceID":31,
 																														"props":{
 																															"name":"Bip001 L Finger12",
 																															"active":true,
@@ -902,7 +942,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":164,
+																																"instanceID":32,
 																																"props":{
 																																	"name":"Bip001 L Finger1Nub",
 																																	"active":true,
@@ -936,7 +976,7 @@
 																									},
 																									{
 																										"type":"Sprite3D",
-																										"instanceID":165,
+																										"instanceID":33,
 																										"props":{
 																											"name":"Bip001 L Finger2",
 																											"active":true,
@@ -963,7 +1003,7 @@
 																										"child":[
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":166,
+																												"instanceID":34,
 																												"props":{
 																													"name":"Bip001 L Finger21",
 																													"active":true,
@@ -990,7 +1030,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":167,
+																														"instanceID":35,
 																														"props":{
 																															"name":"Bip001 L Finger22",
 																															"active":true,
@@ -1017,7 +1057,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":168,
+																																"instanceID":36,
 																																"props":{
 																																	"name":"Bip001 L Finger2Nub",
 																																	"active":true,
@@ -1051,7 +1091,7 @@
 																									},
 																									{
 																										"type":"Sprite3D",
-																										"instanceID":169,
+																										"instanceID":37,
 																										"props":{
 																											"name":"Bip001 L Finger3",
 																											"active":true,
@@ -1078,7 +1118,7 @@
 																										"child":[
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":170,
+																												"instanceID":38,
 																												"props":{
 																													"name":"Bip001 L Finger31",
 																													"active":true,
@@ -1105,7 +1145,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":171,
+																														"instanceID":39,
 																														"props":{
 																															"name":"Bip001 L Finger32",
 																															"active":true,
@@ -1132,7 +1172,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":172,
+																																"instanceID":40,
 																																"props":{
 																																	"name":"Bip001 L Finger3Nub",
 																																	"active":true,
@@ -1166,7 +1206,7 @@
 																									},
 																									{
 																										"type":"Sprite3D",
-																										"instanceID":173,
+																										"instanceID":41,
 																										"props":{
 																											"name":"Bip001 L Finger4",
 																											"active":true,
@@ -1193,7 +1233,7 @@
 																										"child":[
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":174,
+																												"instanceID":42,
 																												"props":{
 																													"name":"Bip001 L Finger41",
 																													"active":true,
@@ -1220,7 +1260,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":175,
+																														"instanceID":43,
 																														"props":{
 																															"name":"Bip001 L Finger42",
 																															"active":true,
@@ -1247,7 +1287,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":176,
+																																"instanceID":44,
 																																"props":{
 																																	"name":"Bip001 L Finger4Nub",
 																																	"active":true,
@@ -1289,7 +1329,7 @@
 																	},
 																	{
 																		"type":"Sprite3D",
-																		"instanceID":177,
+																		"instanceID":45,
 																		"props":{
 																			"name":"Bip001 R Clavicle",
 																			"active":true,
@@ -1316,7 +1356,7 @@
 																		"child":[
 																			{
 																				"type":"Sprite3D",
-																				"instanceID":178,
+																				"instanceID":46,
 																				"props":{
 																					"name":"Bip001 R UpperArm",
 																					"active":true,
@@ -1343,7 +1383,7 @@
 																				"child":[
 																					{
 																						"type":"Sprite3D",
-																						"instanceID":179,
+																						"instanceID":47,
 																						"props":{
 																							"name":"Bip001 R Forearm",
 																							"active":true,
@@ -1370,7 +1410,7 @@
 																						"child":[
 																							{
 																								"type":"Sprite3D",
-																								"instanceID":180,
+																								"instanceID":48,
 																								"props":{
 																									"name":"Bip001 R Hand",
 																									"active":true,
@@ -1397,7 +1437,7 @@
 																								"child":[
 																									{
 																										"type":"Sprite3D",
-																										"instanceID":181,
+																										"instanceID":49,
 																										"props":{
 																											"name":"Bip001 R Finger0",
 																											"active":true,
@@ -1424,7 +1464,7 @@
 																										"child":[
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":182,
+																												"instanceID":50,
 																												"props":{
 																													"name":"Bip001 R Finger01",
 																													"active":true,
@@ -1451,7 +1491,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":183,
+																														"instanceID":51,
 																														"props":{
 																															"name":"Bip001 R Finger02",
 																															"active":true,
@@ -1478,7 +1518,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":184,
+																																"instanceID":52,
 																																"props":{
 																																	"name":"Bip001 R Finger0Nub",
 																																	"active":true,
@@ -1512,7 +1552,7 @@
 																									},
 																									{
 																										"type":"Sprite3D",
-																										"instanceID":185,
+																										"instanceID":53,
 																										"props":{
 																											"name":"Bip001 R Finger1",
 																											"active":true,
@@ -1539,7 +1579,7 @@
 																										"child":[
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":186,
+																												"instanceID":54,
 																												"props":{
 																													"name":"Bip001 R Finger11",
 																													"active":true,
@@ -1566,7 +1606,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":187,
+																														"instanceID":55,
 																														"props":{
 																															"name":"Bip001 R Finger12",
 																															"active":true,
@@ -1593,7 +1633,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":188,
+																																"instanceID":56,
 																																"props":{
 																																	"name":"Bip001 R Finger1Nub",
 																																	"active":true,
@@ -1627,7 +1667,7 @@
 																									},
 																									{
 																										"type":"Sprite3D",
-																										"instanceID":189,
+																										"instanceID":57,
 																										"props":{
 																											"name":"Bip001 R Finger2",
 																											"active":true,
@@ -1654,7 +1694,7 @@
 																										"child":[
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":190,
+																												"instanceID":58,
 																												"props":{
 																													"name":"Bip001 R Finger21",
 																													"active":true,
@@ -1681,7 +1721,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":191,
+																														"instanceID":59,
 																														"props":{
 																															"name":"Bip001 R Finger22",
 																															"active":true,
@@ -1708,7 +1748,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":192,
+																																"instanceID":60,
 																																"props":{
 																																	"name":"Bip001 R Finger2Nub",
 																																	"active":true,
@@ -1742,7 +1782,7 @@
 																									},
 																									{
 																										"type":"Sprite3D",
-																										"instanceID":193,
+																										"instanceID":61,
 																										"props":{
 																											"name":"Bip001 R Finger3",
 																											"active":true,
@@ -1769,7 +1809,7 @@
 																										"child":[
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":194,
+																												"instanceID":62,
 																												"props":{
 																													"name":"Bip001 R Finger31",
 																													"active":true,
@@ -1796,7 +1836,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":195,
+																														"instanceID":63,
 																														"props":{
 																															"name":"Bip001 R Finger32",
 																															"active":true,
@@ -1823,7 +1863,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":196,
+																																"instanceID":64,
 																																"props":{
 																																	"name":"Bip001 R Finger3Nub",
 																																	"active":true,
@@ -1857,7 +1897,7 @@
 																									},
 																									{
 																										"type":"Sprite3D",
-																										"instanceID":197,
+																										"instanceID":65,
 																										"props":{
 																											"name":"Bip001 R Finger4",
 																											"active":true,
@@ -1884,7 +1924,7 @@
 																										"child":[
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":198,
+																												"instanceID":66,
 																												"props":{
 																													"name":"Bip001 R Finger41",
 																													"active":true,
@@ -1911,7 +1951,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":199,
+																														"instanceID":67,
 																														"props":{
 																															"name":"Bip001 R Finger42",
 																															"active":true,
@@ -1938,7 +1978,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":200,
+																																"instanceID":68,
 																																"props":{
 																																	"name":"Bip001 R Finger4Nub",
 																																	"active":true,
@@ -1992,7 +2032,7 @@
 					},
 					{
 						"type":"SkinnedMeshSprite3D",
-						"instanceID":201,
+						"instanceID":69,
 						"props":{
 							"name":"Whiteman",
 							"active":true,
@@ -2014,7 +2054,7 @@
 								1,
 								1
 							],
-							"rootBone":134,
+							"rootBone":2,
 							"boundBox":{
 								"min":[
 									-0.2197284,
@@ -2036,59 +2076,59 @@
 								"radius":0.9904873
 							},
 							"bones":[
-								151,
-								153,
-								154,
-								137,
-								148,
-								149,
-								134,
-								150,
-								155,
-								156,
-								161,
-								165,
-								173,
-								169,
-								162,
-								170,
-								159,
-								157,
-								158,
-								174,
-								166,
-								167,
-								171,
-								163,
-								175,
-								139,
-								138,
-								136,
-								143,
-								144,
-								140,
-								145,
-								141,
-								146,
-								177,
-								178,
-								179,
-								180,
-								185,
-								189,
-								197,
-								193,
-								186,
-								194,
-								182,
-								183,
-								181,
-								198,
-								190,
-								191,
-								195,
-								187,
-								199
+								19,
+								21,
+								22,
+								5,
+								16,
+								17,
+								2,
+								18,
+								23,
+								24,
+								29,
+								33,
+								41,
+								37,
+								30,
+								38,
+								27,
+								25,
+								26,
+								42,
+								34,
+								35,
+								39,
+								31,
+								43,
+								7,
+								6,
+								4,
+								11,
+								12,
+								8,
+								13,
+								9,
+								14,
+								45,
+								46,
+								47,
+								48,
+								53,
+								57,
+								65,
+								61,
+								54,
+								62,
+								50,
+								51,
+								49,
+								66,
+								58,
+								59,
+								63,
+								55,
+								67
 							],
 							"materials":[
 								{
@@ -2101,6 +2141,55 @@
 						"child":[]
 					}
 				]
+			},
+			{
+				"type":"Sprite3D",
+				"instanceID":70,
+				"props":{
+					"name":"collider",
+					"active":true,
+					"isStatic":false,
+					"layer":0,
+					"position":[
+						0,
+						0.686,
+						0
+					],
+					"rotation":[
+						0,
+						0,
+						0,
+						-1
+					],
+					"scale":[
+						1,
+						1,
+						1
+					]
+				},
+				"components":[
+					{
+						"type":"PhysicsCollider",
+						"restitution":0,
+						"friction":0.5,
+						"rollingFriction":0,
+						"shapes":[
+							{
+								"type":"CapsuleColliderShape",
+								"center":[
+									0.04386699,
+									-0.001422962,
+									0.1129636
+								],
+								"radius":0.2833572,
+								"height":1.967032,
+								"orientation":1
+							}
+						],
+						"isTrigger":false
+					}
+				],
+				"child":[]
 			}
 		]
 	}

+ 121 - 121
bin/Game/res/Role/LayaScene_Role/Conventional/player.lh

@@ -2,15 +2,15 @@
 	"version":"LAYAHIERARCHY:02",
 	"data":{
 		"type":"Sprite3D",
-		"instanceID":58,
+		"instanceID":71,
 		"props":{
 			"name":"player",
 			"active":true,
 			"isStatic":false,
 			"layer":0,
 			"position":[
-				0,
-				0,
+				1.082,
+				-1.062,
 				0
 			],
 			"rotation":[
@@ -56,7 +56,7 @@
 		"child":[
 			{
 				"type":"Sprite3D",
-				"instanceID":59,
+				"instanceID":72,
 				"props":{
 					"name":"Ragdoll Root Player",
 					"active":true,
@@ -83,7 +83,7 @@
 				"child":[
 					{
 						"type":"Sprite3D",
-						"instanceID":60,
+						"instanceID":73,
 						"props":{
 							"name":"Ragdoll",
 							"active":true,
@@ -110,7 +110,7 @@
 						"child":[
 							{
 								"type":"Sprite3D",
-								"instanceID":61,
+								"instanceID":74,
 								"props":{
 									"name":"Bip001",
 									"active":true,
@@ -137,7 +137,7 @@
 								"child":[
 									{
 										"type":"Sprite3D",
-										"instanceID":62,
+										"instanceID":75,
 										"props":{
 											"name":"Bip001 Footsteps",
 											"active":true,
@@ -165,7 +165,7 @@
 									},
 									{
 										"type":"Sprite3D",
-										"instanceID":63,
+										"instanceID":76,
 										"props":{
 											"name":"Bip001 Pelvis",
 											"active":true,
@@ -192,7 +192,7 @@
 										"child":[
 											{
 												"type":"Sprite3D",
-												"instanceID":64,
+												"instanceID":77,
 												"props":{
 													"name":"Bip001 Spine",
 													"active":true,
@@ -219,7 +219,7 @@
 												"child":[
 													{
 														"type":"Sprite3D",
-														"instanceID":65,
+														"instanceID":78,
 														"props":{
 															"name":"Bip001 L Thigh",
 															"active":true,
@@ -246,7 +246,7 @@
 														"child":[
 															{
 																"type":"Sprite3D",
-																"instanceID":66,
+																"instanceID":79,
 																"props":{
 																	"name":"Bip001 L Calf",
 																	"active":true,
@@ -273,7 +273,7 @@
 																"child":[
 																	{
 																		"type":"Sprite3D",
-																		"instanceID":67,
+																		"instanceID":80,
 																		"props":{
 																			"name":"Bip001 L Foot",
 																			"active":true,
@@ -300,7 +300,7 @@
 																		"child":[
 																			{
 																				"type":"Sprite3D",
-																				"instanceID":68,
+																				"instanceID":81,
 																				"props":{
 																					"name":"Bip001 L Toe0",
 																					"active":true,
@@ -327,7 +327,7 @@
 																				"child":[
 																					{
 																						"type":"Sprite3D",
-																						"instanceID":69,
+																						"instanceID":82,
 																						"props":{
 																							"name":"Bip001 L Toe0Nub",
 																							"active":true,
@@ -363,7 +363,7 @@
 													},
 													{
 														"type":"Sprite3D",
-														"instanceID":70,
+														"instanceID":83,
 														"props":{
 															"name":"Bip001 R Thigh",
 															"active":true,
@@ -390,7 +390,7 @@
 														"child":[
 															{
 																"type":"Sprite3D",
-																"instanceID":71,
+																"instanceID":84,
 																"props":{
 																	"name":"Bip001 R Calf",
 																	"active":true,
@@ -417,7 +417,7 @@
 																"child":[
 																	{
 																		"type":"Sprite3D",
-																		"instanceID":72,
+																		"instanceID":85,
 																		"props":{
 																			"name":"Bip001 R Foot",
 																			"active":true,
@@ -444,7 +444,7 @@
 																		"child":[
 																			{
 																				"type":"Sprite3D",
-																				"instanceID":73,
+																				"instanceID":86,
 																				"props":{
 																					"name":"Bip001 R Toe0",
 																					"active":true,
@@ -471,7 +471,7 @@
 																				"child":[
 																					{
 																						"type":"Sprite3D",
-																						"instanceID":74,
+																						"instanceID":87,
 																						"props":{
 																							"name":"Bip001 R Toe0Nub",
 																							"active":true,
@@ -507,7 +507,7 @@
 													},
 													{
 														"type":"Sprite3D",
-														"instanceID":75,
+														"instanceID":88,
 														"props":{
 															"name":"Bip001 Spine1",
 															"active":true,
@@ -534,7 +534,7 @@
 														"child":[
 															{
 																"type":"Sprite3D",
-																"instanceID":76,
+																"instanceID":89,
 																"props":{
 																	"name":"Bip001 Spine2",
 																	"active":true,
@@ -561,7 +561,7 @@
 																"child":[
 																	{
 																		"type":"Sprite3D",
-																		"instanceID":77,
+																		"instanceID":90,
 																		"props":{
 																			"name":"Bip001 Neck",
 																			"active":true,
@@ -588,7 +588,7 @@
 																		"child":[
 																			{
 																				"type":"Sprite3D",
-																				"instanceID":78,
+																				"instanceID":91,
 																				"props":{
 																					"name":"Bip001 Head",
 																					"active":true,
@@ -615,7 +615,7 @@
 																				"child":[
 																					{
 																						"type":"Sprite3D",
-																						"instanceID":79,
+																						"instanceID":92,
 																						"props":{
 																							"name":"Bip001 HeadNub",
 																							"active":true,
@@ -645,7 +645,7 @@
 																			},
 																			{
 																				"type":"Sprite3D",
-																				"instanceID":80,
+																				"instanceID":93,
 																				"props":{
 																					"name":"Bip001 L Clavicle",
 																					"active":true,
@@ -672,7 +672,7 @@
 																				"child":[
 																					{
 																						"type":"Sprite3D",
-																						"instanceID":81,
+																						"instanceID":94,
 																						"props":{
 																							"name":"Bip001 L UpperArm",
 																							"active":true,
@@ -699,7 +699,7 @@
 																						"child":[
 																							{
 																								"type":"Sprite3D",
-																								"instanceID":82,
+																								"instanceID":95,
 																								"props":{
 																									"name":"Bip001 L Forearm",
 																									"active":true,
@@ -726,7 +726,7 @@
 																								"child":[
 																									{
 																										"type":"Sprite3D",
-																										"instanceID":83,
+																										"instanceID":96,
 																										"props":{
 																											"name":"Bip001 L Hand",
 																											"active":true,
@@ -753,7 +753,7 @@
 																										"child":[
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":84,
+																												"instanceID":97,
 																												"props":{
 																													"name":"Bip001 L Finger0",
 																													"active":true,
@@ -780,7 +780,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":85,
+																														"instanceID":98,
 																														"props":{
 																															"name":"Bip001 L Finger01",
 																															"active":true,
@@ -807,7 +807,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":86,
+																																"instanceID":99,
 																																"props":{
 																																	"name":"Bip001 L Finger02",
 																																	"active":true,
@@ -834,7 +834,7 @@
 																																"child":[
 																																	{
 																																		"type":"Sprite3D",
-																																		"instanceID":87,
+																																		"instanceID":100,
 																																		"props":{
 																																			"name":"Bip001 L Finger0Nub",
 																																			"active":true,
@@ -868,7 +868,7 @@
 																											},
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":88,
+																												"instanceID":101,
 																												"props":{
 																													"name":"Bip001 L Finger1",
 																													"active":true,
@@ -895,7 +895,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":89,
+																														"instanceID":102,
 																														"props":{
 																															"name":"Bip001 L Finger11",
 																															"active":true,
@@ -922,7 +922,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":90,
+																																"instanceID":103,
 																																"props":{
 																																	"name":"Bip001 L Finger12",
 																																	"active":true,
@@ -949,7 +949,7 @@
 																																"child":[
 																																	{
 																																		"type":"Sprite3D",
-																																		"instanceID":91,
+																																		"instanceID":104,
 																																		"props":{
 																																			"name":"Bip001 L Finger1Nub",
 																																			"active":true,
@@ -983,7 +983,7 @@
 																											},
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":92,
+																												"instanceID":105,
 																												"props":{
 																													"name":"Bip001 L Finger2",
 																													"active":true,
@@ -1010,7 +1010,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":93,
+																														"instanceID":106,
 																														"props":{
 																															"name":"Bip001 L Finger21",
 																															"active":true,
@@ -1037,7 +1037,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":94,
+																																"instanceID":107,
 																																"props":{
 																																	"name":"Bip001 L Finger22",
 																																	"active":true,
@@ -1064,7 +1064,7 @@
 																																"child":[
 																																	{
 																																		"type":"Sprite3D",
-																																		"instanceID":95,
+																																		"instanceID":108,
 																																		"props":{
 																																			"name":"Bip001 L Finger2Nub",
 																																			"active":true,
@@ -1098,7 +1098,7 @@
 																											},
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":96,
+																												"instanceID":109,
 																												"props":{
 																													"name":"Bip001 L Finger3",
 																													"active":true,
@@ -1125,7 +1125,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":97,
+																														"instanceID":110,
 																														"props":{
 																															"name":"Bip001 L Finger31",
 																															"active":true,
@@ -1152,7 +1152,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":98,
+																																"instanceID":111,
 																																"props":{
 																																	"name":"Bip001 L Finger32",
 																																	"active":true,
@@ -1179,7 +1179,7 @@
 																																"child":[
 																																	{
 																																		"type":"Sprite3D",
-																																		"instanceID":99,
+																																		"instanceID":112,
 																																		"props":{
 																																			"name":"Bip001 L Finger3Nub",
 																																			"active":true,
@@ -1213,7 +1213,7 @@
 																											},
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":100,
+																												"instanceID":113,
 																												"props":{
 																													"name":"Bip001 L Finger4",
 																													"active":true,
@@ -1240,7 +1240,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":101,
+																														"instanceID":114,
 																														"props":{
 																															"name":"Bip001 L Finger41",
 																															"active":true,
@@ -1267,7 +1267,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":102,
+																																"instanceID":115,
 																																"props":{
 																																	"name":"Bip001 L Finger42",
 																																	"active":true,
@@ -1294,7 +1294,7 @@
 																																"child":[
 																																	{
 																																		"type":"Sprite3D",
-																																		"instanceID":103,
+																																		"instanceID":116,
 																																		"props":{
 																																			"name":"Bip001 L Finger4Nub",
 																																			"active":true,
@@ -1336,7 +1336,7 @@
 																			},
 																			{
 																				"type":"Sprite3D",
-																				"instanceID":104,
+																				"instanceID":117,
 																				"props":{
 																					"name":"Bip001 R Clavicle",
 																					"active":true,
@@ -1363,7 +1363,7 @@
 																				"child":[
 																					{
 																						"type":"Sprite3D",
-																						"instanceID":105,
+																						"instanceID":118,
 																						"props":{
 																							"name":"Bip001 R UpperArm",
 																							"active":true,
@@ -1390,7 +1390,7 @@
 																						"child":[
 																							{
 																								"type":"Sprite3D",
-																								"instanceID":106,
+																								"instanceID":119,
 																								"props":{
 																									"name":"Bip001 R Forearm",
 																									"active":true,
@@ -1417,7 +1417,7 @@
 																								"child":[
 																									{
 																										"type":"Sprite3D",
-																										"instanceID":107,
+																										"instanceID":120,
 																										"props":{
 																											"name":"Bip001 R Hand",
 																											"active":true,
@@ -1444,7 +1444,7 @@
 																										"child":[
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":108,
+																												"instanceID":121,
 																												"props":{
 																													"name":"Bip001 R Finger0",
 																													"active":true,
@@ -1471,7 +1471,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":109,
+																														"instanceID":122,
 																														"props":{
 																															"name":"Bip001 R Finger01",
 																															"active":true,
@@ -1498,7 +1498,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":110,
+																																"instanceID":123,
 																																"props":{
 																																	"name":"Bip001 R Finger02",
 																																	"active":true,
@@ -1525,7 +1525,7 @@
 																																"child":[
 																																	{
 																																		"type":"Sprite3D",
-																																		"instanceID":111,
+																																		"instanceID":124,
 																																		"props":{
 																																			"name":"Bip001 R Finger0Nub",
 																																			"active":true,
@@ -1559,7 +1559,7 @@
 																											},
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":112,
+																												"instanceID":125,
 																												"props":{
 																													"name":"Bip001 R Finger1",
 																													"active":true,
@@ -1586,7 +1586,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":113,
+																														"instanceID":126,
 																														"props":{
 																															"name":"Bip001 R Finger11",
 																															"active":true,
@@ -1613,7 +1613,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":114,
+																																"instanceID":127,
 																																"props":{
 																																	"name":"Bip001 R Finger12",
 																																	"active":true,
@@ -1640,7 +1640,7 @@
 																																"child":[
 																																	{
 																																		"type":"Sprite3D",
-																																		"instanceID":115,
+																																		"instanceID":128,
 																																		"props":{
 																																			"name":"Bip001 R Finger1Nub",
 																																			"active":true,
@@ -1674,7 +1674,7 @@
 																											},
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":116,
+																												"instanceID":129,
 																												"props":{
 																													"name":"Bip001 R Finger2",
 																													"active":true,
@@ -1701,7 +1701,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":117,
+																														"instanceID":130,
 																														"props":{
 																															"name":"Bip001 R Finger21",
 																															"active":true,
@@ -1728,7 +1728,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":118,
+																																"instanceID":131,
 																																"props":{
 																																	"name":"Bip001 R Finger22",
 																																	"active":true,
@@ -1755,7 +1755,7 @@
 																																"child":[
 																																	{
 																																		"type":"Sprite3D",
-																																		"instanceID":119,
+																																		"instanceID":132,
 																																		"props":{
 																																			"name":"Bip001 R Finger2Nub",
 																																			"active":true,
@@ -1789,7 +1789,7 @@
 																											},
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":120,
+																												"instanceID":133,
 																												"props":{
 																													"name":"Bip001 R Finger3",
 																													"active":true,
@@ -1816,7 +1816,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":121,
+																														"instanceID":134,
 																														"props":{
 																															"name":"Bip001 R Finger31",
 																															"active":true,
@@ -1843,7 +1843,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":122,
+																																"instanceID":135,
 																																"props":{
 																																	"name":"Bip001 R Finger32",
 																																	"active":true,
@@ -1870,7 +1870,7 @@
 																																"child":[
 																																	{
 																																		"type":"Sprite3D",
-																																		"instanceID":123,
+																																		"instanceID":136,
 																																		"props":{
 																																			"name":"Bip001 R Finger3Nub",
 																																			"active":true,
@@ -1904,7 +1904,7 @@
 																											},
 																											{
 																												"type":"Sprite3D",
-																												"instanceID":124,
+																												"instanceID":137,
 																												"props":{
 																													"name":"Bip001 R Finger4",
 																													"active":true,
@@ -1931,7 +1931,7 @@
 																												"child":[
 																													{
 																														"type":"Sprite3D",
-																														"instanceID":125,
+																														"instanceID":138,
 																														"props":{
 																															"name":"Bip001 R Finger41",
 																															"active":true,
@@ -1958,7 +1958,7 @@
 																														"child":[
 																															{
 																																"type":"Sprite3D",
-																																"instanceID":126,
+																																"instanceID":139,
 																																"props":{
 																																	"name":"Bip001 R Finger42",
 																																	"active":true,
@@ -1985,7 +1985,7 @@
 																																"child":[
 																																	{
 																																		"type":"Sprite3D",
-																																		"instanceID":127,
+																																		"instanceID":140,
 																																		"props":{
 																																			"name":"Bip001 R Finger4Nub",
 																																			"active":true,
@@ -2039,7 +2039,7 @@
 							},
 							{
 								"type":"SkinnedMeshSprite3D",
-								"instanceID":128,
+								"instanceID":141,
 								"props":{
 									"name":"Whiteman",
 									"active":true,
@@ -2061,7 +2061,7 @@
 										1,
 										1
 									],
-									"rootBone":61,
+									"rootBone":74,
 									"boundBox":{
 										"min":[
 											-0.2248232,
@@ -2083,59 +2083,59 @@
 										"radius":1.098329
 									},
 									"bones":[
-										78,
-										80,
-										81,
-										64,
-										75,
-										76,
-										61,
+										91,
+										93,
+										94,
 										77,
-										82,
-										83,
 										88,
-										92,
-										100,
-										96,
 										89,
-										97,
-										86,
-										84,
-										85,
-										101,
-										93,
-										94,
-										98,
+										74,
 										90,
-										102,
-										66,
-										65,
-										63,
-										70,
-										71,
-										67,
-										72,
-										68,
-										73,
-										104,
+										95,
+										96,
+										101,
 										105,
-										106,
-										107,
-										112,
-										116,
-										124,
-										120,
 										113,
-										121,
 										109,
+										102,
 										110,
-										108,
-										125,
+										99,
+										97,
+										98,
+										114,
+										106,
+										107,
+										111,
+										103,
+										115,
+										79,
+										78,
+										76,
+										83,
+										84,
+										80,
+										85,
+										81,
+										86,
 										117,
 										118,
+										119,
+										120,
+										125,
+										129,
+										137,
+										133,
+										126,
+										134,
 										122,
-										114,
-										126
+										123,
+										121,
+										138,
+										130,
+										131,
+										135,
+										127,
+										139
 									],
 									"materials":[
 										{
@@ -2153,7 +2153,7 @@
 			},
 			{
 				"type":"Sprite3D",
-				"instanceID":129,
+				"instanceID":142,
 				"props":{
 					"name":"raypos",
 					"active":true,
@@ -2181,7 +2181,7 @@
 			},
 			{
 				"type":"Sprite3D",
-				"instanceID":130,
+				"instanceID":143,
 				"props":{
 					"name":"archerpos",
 					"active":true,
@@ -2189,7 +2189,7 @@
 					"layer":0,
 					"position":[
 						-0.486,
-						1.818,
+						1.584,
 						1.201
 					],
 					"rotation":[
@@ -2209,7 +2209,7 @@
 			},
 			{
 				"type":"Sprite3D",
-				"instanceID":131,
+				"instanceID":144,
 				"props":{
 					"name":"arrowpos",
 					"active":true,
@@ -2218,7 +2218,7 @@
 					"position":[
 						-0.256,
 						2.761,
-						0.32
+						0.369
 					],
 					"rotation":[
 						0,

+ 154 - 16
bin/js/bundle.js

@@ -144,6 +144,13 @@
                 }
             }
         }
+        EnemySetCollider(setNode, collisionGroup) {
+            var collider = setNode.getChildByName("collider");
+            var physicsCollider = setNode.getComponent(Laya.PhysicsCollider);
+            if (physicsCollider) {
+                physicsCollider.collisionGroup = collisionGroup;
+            }
+        }
         static RandomNumber(from, to) {
             if (from >= to) {
                 return 0;
@@ -442,7 +449,7 @@
     class Runner extends Laya.Script3D {
         constructor() {
             super();
-            this.m_raydistance = 20;
+            this.m_raydistance = 1000;
             this.canmove = false;
             this._speed = 1;
             this._press = false;
@@ -454,10 +461,6 @@
             this.NormalizeSpeed = new Vector3$2();
             this.curpos = new Vector3$2();
             this.offest = new Vector3$2();
-            this.arspeed = 0;
-            this.arrowspeed = 2;
-            this.offsetpos = new Vector3$2();
-            this.curpos2 = new Vector3$2();
         }
         static get Instance() {
             if (Runner.ins) {
@@ -507,11 +510,6 @@
                 this.currot = new Laya.Quaternion(0, this.currot.y, 0);
                 this.m_player.transform.rotation = this.currot;
             }
-            else {
-                Laya.Quaternion.slerp(this.m_player.transform.rotation, new Laya.Quaternion(0, 0, 0, 0), 0.1, this.currot);
-                this.currot = new Laya.Quaternion(0, this.currot.y, 0);
-                this.m_player.transform.rotation = this.currot;
-            }
         }
         Move(_dir, _speed) {
             var sp = GameTools.Instance.lerp(this.curspeed, _speed, 0.1);
@@ -561,16 +559,19 @@
             this.m_animator.play("Horse_Run");
         }
         RayCheck() {
-            if (this.DownRayCheck) ;
+            if (this.DownRayCheck) {
+                this.m_player.transform.position = new Vector3$2(this.m_player.transform.position.x, this.DownHit.point.y, this.m_player.transform.position.z);
+            }
             if (this.FowardRayCheck) {
+                console.log("射线打到了---", this.FowardHit.collider.owner.name);
                 this.CrashBarrier();
             }
         }
         CrashBarrier() {
             var target = this.FowardHit.collider.owner;
             if (target.name == "") ;
-            else if (target.name == "") ;
-            else if (target.name == "") ;
+            else if (target.name == "fire") ;
+            else if (target.name == "fence") ;
             else if (target.name == "") ;
         }
         get DownRayCheck() {
@@ -605,8 +606,15 @@
             let testRay = new Laya.Ray(this.m_raypos.transform.position, forw);
             let hitRes = new Laya.HitResult();
             let isHit = AssetManager.Instance.mainscene.physicsSimulation.rayCast(testRay, hitRes, this.m_raydistance);
-            let foward = Transform3DHelper.getForward(arrow.transform).clone();
-            this.ArrowMove(arrow, new Vector3$2(-foward.x, -foward.y, -foward.z));
+            if (isHit) {
+                let target = hitRes.collider.owner;
+                let pos = target.transform.position.clone();
+                arrow.transform.translate(pos);
+            }
+            else {
+                let foward = Transform3DHelper.getForward(arrow.transform).clone();
+                this.ArrowMove(arrow, new Vector3$2(-foward.x, -foward.y, -foward.z));
+            }
         }
         ArrowMove(_arrow, _dir) {
             Laya.timer.frameLoop(1, this, () => {
@@ -873,9 +881,126 @@
         }
     }
 
+    var Vector3$4 = Laya.Vector3;
+    var NpcState;
+    (function (NpcState) {
+        NpcState[NpcState["Attack"] = 0] = "Attack";
+        NpcState[NpcState["Ilde"] = 1] = "Ilde";
+        NpcState[NpcState["Win"] = 2] = "Win";
+        NpcState[NpcState["Pursue"] = 3] = "Pursue";
+        NpcState[NpcState["Run"] = 4] = "Run";
+    })(NpcState || (NpcState = {}));
+    class NpcRunner extends Laya.Script {
+        constructor() {
+            super();
+            this.m_distance = 30;
+            this.m_distanceatk = 15;
+            this.DIE = false;
+            this.m_npcspeed = 1;
+            this.canmove = false;
+            this.offest = new Vector3$4();
+            this.curpos = new Vector3$4();
+            NpcRunner.ins = this;
+            EventManager.StageOn(StageState.Start, this, this.Begin);
+        }
+        static get Instance() {
+            if (NpcRunner.ins) {
+                return NpcRunner.ins;
+            }
+            else {
+                return new NpcRunner();
+            }
+        }
+        onAwake() {
+            this.m_npcmodel = this.owner;
+            this.m_npcanimator = this.owner.getComponent(Laya.Animator);
+            this.player = GameManager.Instance.CharacterArray[0];
+        }
+        Begin() {
+            this.ChangeState(NpcState.Ilde);
+        }
+        onUpdate() {
+            var distance = Vector3$4.distance(this.player.transform.position, this.m_npcmodel.transform.position);
+            if (distance < this.m_distance && distance > this.m_distanceatk) {
+                this.canmove = true;
+                this.ChangeState(NpcState.Run);
+            }
+            else if (distance <= this.m_distanceatk) {
+                this.canmove = false;
+                this.ChangeState(NpcState.Attack);
+            }
+            this.Move(new Vector3$4(0, 0, -1), 1);
+        }
+        Move(_dir, _speed) {
+            if (this.canmove) {
+                var sp = GameTools.Instance.lerp(this.m_npcspeed, _speed, 0.1);
+                this.m_npcspeed = sp;
+                Vector3$4.scale(_dir, this.m_npcspeed, this.offest);
+                Vector3$4.add(this.m_npcmodel.transform.position, this.offest, this.curpos);
+                Vector3$4.lerp(this.m_npcmodel.transform.position, this.curpos, 0.15, this.curpos);
+                this.curpos = new Vector3$4(this.curpos.x, this.curpos.y, this.curpos.z);
+                this.m_npcmodel.transform.position = this.curpos;
+            }
+        }
+        ChangeState(_state) {
+            if (this.npc_state == _state)
+                return;
+            this.npc_state = _state;
+            switch (this.npc_state) {
+                case NpcState.Attack:
+                    this.Attack();
+                    break;
+                case NpcState.Pursue:
+                    this.Pursue();
+                    break;
+                case NpcState.Win:
+                    this.Win();
+                    break;
+                case NpcState.Ilde:
+                    this.Idle();
+                    break;
+                case NpcState.Run:
+                    this.Run();
+                    break;
+            }
+        }
+        Idle() {
+            this.m_npcanimator.play("Idle");
+        }
+        Attack() {
+            this.m_npcanimator.play("JumpOver");
+        }
+        Win() {
+            this.m_npcanimator.play("Victory Idle");
+        }
+        Pursue() {
+        }
+        Run() {
+            this.m_npcanimator.play("run");
+        }
+    }
+
+    class NpcControl {
+        constructor() {
+            NpcControl.ins = this;
+        }
+        static get Instance() {
+            if (NpcControl.ins) {
+                return NpcControl.ins;
+            }
+            else {
+                return new NpcControl();
+            }
+        }
+        Init(_npc) {
+            this.m_npcmodel = _npc;
+            this.m_npcrunner = this.m_npcmodel.addComponent(NpcRunner);
+        }
+    }
+
     class GameManager {
         constructor() {
-            this.EnemyArray = [];
+            this.CharacterArray = [];
             GameManager.ins = this;
             EventManager.EventOn(EventState.SceneInit, this, this.Init);
         }
@@ -912,8 +1037,21 @@
             this.CreatArrow(arrowpos.transform.position.clone(), arrowpos.transform.rotationEuler.clone(), arrowpos);
             PlayerControl.Instance.Init(playermodel);
             AssetManager.Instance.mainscene.addChild(playermodel);
+            this.CharacterArray.push(playermodel);
         }
         CreatEnemy() {
+            for (let i = 0; i < 5; i++) {
+                var enemymodel = GamePool.Instance.GetModel(AssetManager.Instance.Enemy.get(1), "");
+                let posX = GameTools.RandomANumber(-20, 20);
+                let posZ = GameTools.RandomANumber(20, 100);
+                enemymodel.transform.position = new Laya.Vector3(posX, 0, posZ);
+                enemymodel.transform.localScale = new Laya.Vector3(1.5, 1.5, 1.5);
+                enemymodel.transform.rotationEuler = new Laya.Vector3(0, 180, 0);
+                NpcControl.Instance.Init(enemymodel);
+                AssetManager.Instance.mainscene.addChild(enemymodel);
+                GameTools.Instance.EnemySetCollider(enemymodel, 100);
+                this.CharacterArray.push(enemymodel);
+            }
         }
         CreatRay(pos, euler, raypos) {
             var ray = this.CreatRayPrefab();

File diff suppressed because it is too large
+ 1 - 1
bin/js/bundle.js.map


+ 35 - 20
src/Game/GameManager.ts

@@ -1,16 +1,19 @@
-import { AssetManager } from "../Tools/AssetManager";
+import { AssetManager, ResourcesPath } from "../Tools/AssetManager";
 import GamePool from "../Tools/GamePool";
 import { EventManager, EventState } from "../Tools/EventManager";
 import { PlayerControl } from "./PlayerControl";
 import { ViewManager, ViewType } from "../View/ViewManager";
+import { GameTools } from "../Tools/GameTools";
+import { NpcControl } from "./NpcControl";
 
 
 export class GameManager{
     private static ins:GameManager;
     
-    //人数组
-    public EnemyArray:Array<Laya.Sprite3D> = [];
+    //人数组
+    public CharacterArray:Array<Laya.Sprite3D> = [];
     public mainscene:Laya.Scene3D;
+
     // //瞄准线位置
     // private raypos:Laya.Sprite3D;
     // //弓位置
@@ -41,25 +44,37 @@ export class GameManager{
         this.CreatEnemy();
     }
     CreatPlayer(){
-        var playermodel = GamePool.Instance.GetModel(AssetManager.Instance.Player.get(1),"");
-        var horsemodel = GamePool.Instance.GetModel(AssetManager.Instance.Horse.get(1),"");
-        playermodel.addChild(horsemodel);
-        playermodel.transform.position = new Laya.Vector3(0,0,0);
-        horsemodel.transform.localScale = new  Laya.Vector3(1,1,1);
-        horsemodel.transform.localPosition = new Laya.Vector3(0,0,0);
-        var raypos = playermodel.getChildByName("raypos") as Laya.Sprite3D;
-        var archerpos = playermodel.getChildByName("archerpos") as Laya.Sprite3D;
-        var arrowpos = playermodel.getChildByName("arrowpos") as Laya.Sprite3D;
-
-        this.CreatRay(raypos.transform.position.clone(),raypos.transform.rotationEuler.clone(),raypos);
-        this.CreatArcher(archerpos.transform.position.clone(),archerpos.transform.rotationEuler.clone(),archerpos);
-        this.CreatArrow(arrowpos.transform.position.clone(),arrowpos.transform.rotationEuler.clone(),arrowpos);
-
-        PlayerControl.Instance.Init(playermodel);
-        AssetManager.Instance.mainscene.addChild(playermodel);
+            var playermodel = GamePool.Instance.GetModel(AssetManager.Instance.Player.get(1),"");
+            var horsemodel = GamePool.Instance.GetModel(AssetManager.Instance.Horse.get(1),"");
+            playermodel.addChild(horsemodel);
+            playermodel.transform.position = new Laya.Vector3(0,0,0);
+            horsemodel.transform.localScale = new  Laya.Vector3(1,1,1);
+            horsemodel.transform.localPosition = new Laya.Vector3(0,0,0);
+            var raypos = playermodel.getChildByName("raypos") as Laya.Sprite3D;
+            var archerpos = playermodel.getChildByName("archerpos") as Laya.Sprite3D;
+            var arrowpos = playermodel.getChildByName("arrowpos") as Laya.Sprite3D;
+    
+            this.CreatRay(raypos.transform.position.clone(),raypos.transform.rotationEuler.clone(),raypos);
+            this.CreatArcher(archerpos.transform.position.clone(),archerpos.transform.rotationEuler.clone(),archerpos);
+            this.CreatArrow(arrowpos.transform.position.clone(),arrowpos.transform.rotationEuler.clone(),arrowpos);
+            PlayerControl.Instance.Init(playermodel);
+            AssetManager.Instance.mainscene.addChild(playermodel);
+            this.CharacterArray.push(playermodel);
     }
     CreatEnemy(){
-        
+        for (let i = 0; i < 5; i++) {
+            var enemymodel = GamePool.Instance.GetModel(AssetManager.Instance.Enemy.get(1),"");
+            let posX = GameTools.RandomANumber(-20,20);
+            let posZ = GameTools.RandomANumber(20,100);
+            enemymodel.transform.position = new Laya.Vector3(posX,0,posZ);
+            enemymodel.transform.localScale = new Laya.Vector3(1.5,1.5,1.5);
+            enemymodel.transform.rotationEuler = new Laya.Vector3(0,180,0);
+            
+            NpcControl.Instance.Init(enemymodel);
+            AssetManager.Instance.mainscene.addChild(enemymodel);
+            GameTools.Instance.EnemySetCollider(enemymodel,100);
+            this.CharacterArray.push(enemymodel);
+        }
     }
     //创建瞄准线
     CreatRay(pos:Laya.Vector3,euler:Laya.Vector3,raypos:Laya.Sprite3D){

+ 25 - 0
src/Game/NpcControl.ts

@@ -0,0 +1,25 @@
+import { NpcRunner } from "./NpcRunner";
+
+export class NpcControl{
+    private static ins:NpcControl;
+    //npc模型
+    public m_npcmodel:Laya.Sprite3D;
+    public m_npcrunner:NpcRunner;
+   
+
+    constructor(){
+        NpcControl.ins = this;
+    }
+    public static get Instance():NpcControl{
+        if(NpcControl.ins){
+            return NpcControl.ins
+        }
+        else{
+            return new NpcControl();
+        }
+    }
+    Init(_npc:Laya.Sprite3D){
+        this.m_npcmodel = _npc;
+        this.m_npcrunner = this.m_npcmodel.addComponent(NpcRunner) as NpcRunner; 
+    }
+}

+ 120 - 0
src/Game/NpcRunner.ts

@@ -0,0 +1,120 @@
+import Vector3 = Laya.Vector3;
+import {GameManager} from "./GameManager";
+import { EventManager, StageState } from "../Tools/EventManager";
+import { GameTools } from "../Tools/GameTools";
+//npc状态
+export enum NpcState{Attack,Ilde,Win,Pursue,Run,}
+
+export class NpcRunner extends Laya.Script{
+    private static ins:NpcRunner;
+    //npc模型
+    public m_npcmodel:Laya.Sprite3D;
+    //npc动画控制器
+    public m_npcanimator:Laya.Animator;
+    //距离玩家多远开始奔跑
+    public m_distance:number = 30;
+    //距离玩家多远开始攻击
+    public m_distanceatk:number = 15;
+    //是否死亡
+    public DIE:boolean = false;
+    //npc速度
+    public m_npcspeed:number = 1;
+
+
+    public npc_state:NpcState;
+
+    public canmove:boolean = false;
+
+    public player:Laya.Sprite3D;
+    constructor(){
+        super();
+        NpcRunner.ins = this;
+        EventManager.StageOn(StageState.Start,this,this.Begin);
+    }
+    public static get Instance():NpcRunner{
+        if(NpcRunner.ins){
+            return NpcRunner.ins
+        }
+        else{
+            return new NpcRunner();
+        }
+    }
+    onAwake(){
+        this.m_npcmodel = this.owner as Laya.Sprite3D;
+        this.m_npcanimator = this.owner.getComponent(Laya.Animator) as Laya.Animator;
+        this.player = GameManager.Instance.CharacterArray[0] as Laya.Sprite3D;
+    }
+    Begin(){
+        this.ChangeState(NpcState.Ilde);
+    }
+    onUpdate(){
+        var distance = Vector3.distance(this.player.transform.position,this.m_npcmodel.transform.position);
+        if(distance<this.m_distance && distance>this.m_distanceatk){
+            // this.m_npcmodel.transform.lookAt(this.player.transform.position,new Vector3(0,1,0));
+            this.canmove = true;
+            this.ChangeState(NpcState.Run);
+        }
+        else if(distance <= this.m_distanceatk){
+            // this.m_npcmodel.transform.lookAt(this.player.transform.position,new Vector3(0,1,0));
+            this.canmove = false;
+            this.ChangeState(NpcState.Attack);
+        }
+        this.Move(new Vector3(0,0,-1),1);
+    }
+    offest = new Vector3();
+    curpos = new Vector3();
+    //移动
+    Move(_dir:Vector3,_speed:number){
+        if(this.canmove){
+            var sp = GameTools.Instance.lerp(this.m_npcspeed,_speed,0.1);
+            this.m_npcspeed = sp;
+            Vector3.scale(_dir,this.m_npcspeed,this.offest);
+            Vector3.add(this.m_npcmodel.transform.position,this.offest,this.curpos);
+            Vector3.lerp(this.m_npcmodel.transform.position,this.curpos,0.15,this.curpos);
+            this.curpos = new Vector3(this.curpos.x,this.curpos.y,this.curpos.z);
+            this.m_npcmodel.transform.position = this.curpos;
+        }
+    }
+    ChangeState(_state:NpcState){
+        if(this.npc_state == _state) return
+        this.npc_state = _state;
+        switch (this.npc_state) {
+            case NpcState.Attack:
+                this.Attack();
+                break;
+            case NpcState.Pursue:
+                this.Pursue();
+                break;
+            case NpcState.Win:
+                this.Win();
+                break;
+            case NpcState.Ilde:
+                this.Idle();
+                break;
+            case NpcState.Run:
+                this.Run();
+                break;
+        }
+    }
+    //站立
+    Idle(){
+        this.m_npcanimator.play("Idle");
+    }
+    //攻击
+    Attack(){
+        this.m_npcanimator.play("JumpOver");
+    }
+    //获胜
+    Win(){
+        this.m_npcanimator.play("Victory Idle");
+    }
+    //追赶
+    Pursue(){
+
+    }
+    //奔跑
+    Run(){
+        this.m_npcanimator.play("run");
+    }
+
+}

+ 17 - 26
src/Game/Runner.ts

@@ -25,7 +25,7 @@ export class Runner extends Laya.Script3D{
     m_archerpos:Laya.Sprite3D;
 
     //射线能打到的长度
-    m_raydistance:number = 20;
+    m_raydistance:number = 1000;
 
     
     public canmove:boolean = false;
@@ -83,12 +83,7 @@ export class Runner extends Laya.Script3D{
     }
     MoveX(_speed:number){
         _speed*=0.07;
-        //var dir = new Vector3(_speed,0,0);
-        //Vector3.add(this.m_sprite.transform.position,dir,this.m_sprite.transform.position);
         this.m_player.transform.translate(new Vector3(_speed,0,0));
-        // this.m_player.transform.position = this.m_player.transform.position.x < -4.5?new Vector3(-4.5,this.m_player.transform.position.y,this.m_player.transform.position.z):this.m_player.transform.position;
-        // this.m_player.transform.position = this.m_player.transform.position.x > 4.5?new Vector3(4.5,this.m_player.transform.position.y,this.m_player.transform.position.z):this.m_player.transform.position;
-        //this.m_sprite.transform.position = this.curpos;
     }
     currotV = new Vector3();
     currot = new Laya.Quaternion;
@@ -109,9 +104,9 @@ export class Runner extends Laya.Script3D{
         }
         else
         {
-            Laya.Quaternion.slerp(this.m_player.transform.rotation,new Laya.Quaternion(0,0,0,0),0.1,this.currot);
-            this.currot = new Laya.Quaternion(0,this.currot.y,0);
-            this.m_player.transform.rotation = this.currot;
+            // Laya.Quaternion.slerp(this.m_player.transform.rotation,new Laya.Quaternion(0,0,0,0),0.1,this.currot);
+            // this.currot = new Laya.Quaternion(0,this.currot.y,0);
+            // this.m_player.transform.rotation = this.currot;
         }
     }
     Move(_dir:Vector3,_speed:number){
@@ -165,9 +160,10 @@ export class Runner extends Laya.Script3D{
     }
     RayCheck(){
         if(this.DownRayCheck){
-
+            this.m_player.transform.position = new Vector3(this.m_player.transform.position.x,this.DownHit.point.y,this.m_player.transform.position.z);
         }
         if(this.FowardRayCheck){
+            console.log("射线打到了---",this.FowardHit.collider.owner.name);
             this.CrashBarrier();
         }
     }
@@ -177,10 +173,10 @@ export class Runner extends Laya.Script3D{
         if(target.name == ""){
 
         }
-        else if(target.name == ""){
+        else if(target.name == "fire"){
 
         }
-        else if(target.name == ""){
+        else if(target.name == "fence"){
 
         }
         else if(target.name == ""){
@@ -214,11 +210,6 @@ export class Runner extends Laya.Script3D{
         }
         return isFowardHit;
     }
-    arspeed:number = 0;
-    //箭速
-    arrowspeed:number = 2;
-    offsetpos = new Vector3();
-    curpos2 = new Vector3();
 
     //射箭
     Archery(){
@@ -230,15 +221,15 @@ export class Runner extends Laya.Script3D{
         let testRay = new Laya.Ray(this.m_raypos.transform.position, forw);
         let hitRes = new Laya.HitResult();
         let isHit = AssetManager.Instance.mainscene.physicsSimulation.rayCast(testRay,hitRes,this.m_raydistance);
-        // if(isHit){
-        //     let target = hitRes.collider.owner as Laya.Sprite3D;
-        //     let raypos = ray.transform.position.clone();
-        // }
-        // else{
-
-        // }
-        let foward = Transform3DHelper.getForward(arrow.transform).clone();
-        this.ArrowMove(arrow,new Vector3(-foward.x,-foward.y,-foward.z))
+        if(isHit){
+            let target = hitRes.collider.owner as Laya.Sprite3D;
+            let pos = target.transform.position.clone();
+            arrow.transform.translate(pos);
+        }
+        else{
+            let foward = Transform3DHelper.getForward(arrow.transform).clone();
+            this.ArrowMove(arrow,new Vector3(-foward.x,-foward.y,-foward.z));
+        }
     }
     ArrowMove(_arrow:Laya.Sprite3D,_dir:Laya.Vector3){
         Laya.timer.frameLoop(1,this,()=>{

+ 3 - 0
src/Tools/AssetManager.ts

@@ -22,6 +22,7 @@ export class AssetManager{
     public Stone:ResDic = new ResDic();
     //树
     public Tree:ResDic = new ResDic();
+    
 
     constructor(){
         AssetManager.ins = this;
@@ -44,6 +45,8 @@ export class AssetManager{
 }
 export class ResourcesPath{
     static MainScene = "Game/res/MainScene/LayaScene_Mainscene/Conventional/Mainscene.ls";
+    
+    
     static Horse =
     [
         "Game/res/Role/LayaScene_Role/Conventional/Horse.lh"

+ 8 - 0
src/Tools/GameTools.ts

@@ -67,6 +67,14 @@ export  class GameTools  {
             }
         }
     }
+    /**给敌人设置碰撞器 */
+    EnemySetCollider(setNode:Laya.Node,collisionGroup:number){
+        var collider = setNode.getChildByName("collider") as Laya.Sprite3D;
+        var physicsCollider = setNode.getComponent(Laya.PhysicsCollider) as Laya.PhysicsCollider;
+        if(physicsCollider){
+            physicsCollider.collisionGroup = collisionGroup;
+        }
+    }
     //随机一个浮点数
     public static RandomNumber(from:number,to:number):number
     {