Explorar el Código

角色和Enemy发生碰撞的问题

wulifu hace 1 año
padre
commit
555e7bfde4

+ 6 - 1
ActionTowerDefense/Assets/Resources/Prefab/Player.prefab

@@ -370,7 +370,7 @@ BoxCollider:
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 1367816017394770223}
   m_Material: {fileID: 13400000, guid: 2e70fb313541af7448ba7b210cc224c5, type: 2}
-  m_IsTrigger: 0
+  m_IsTrigger: 1
   m_Enabled: 1
   serializedVersion: 2
   m_Size: {x: 0.576, y: 1.8, z: 1}
@@ -501,6 +501,7 @@ MonoBehaviour:
   state: 1
   attackTime: 0
   totalAttack1Time: 1
+  totalAttack2Time: 0.5
   isDie: 0
   totalHp: 100
   hp: 0
@@ -508,8 +509,12 @@ MonoBehaviour:
   - damage: 30
     attackDir: {x: -1, y: 0, z: 0}
     force: 1000
+  attack2Infos: []
   attackTriggers:
   - {fileID: 1267495056}
+  attackType: 0
+  bulletPrefab: {fileID: 0}
+  shootPos: []
   foot: {fileID: 3571941039716665623}
   extraRiseGravity: -28.8
   extraFallGravity: -14.4

+ 17 - 17
ActionTowerDefense/Assets/Scenes/SampleScene.unity

@@ -324,7 +324,7 @@ Camera:
   m_GameObject: {fileID: 519420028}
   m_Enabled: 1
   serializedVersion: 2
-  m_ClearFlags: 2
+  m_ClearFlags: 1
   m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
   m_projectionMatrixMode: 1
   m_GateFitMode: 2
@@ -342,7 +342,7 @@ Camera:
   far clip plane: 1000
   field of view: 60
   orthographic: 0
-  orthographic size: 5.4
+  orthographic size: 5
   m_Depth: -1
   m_CullingMask:
     serializedVersion: 2
@@ -350,12 +350,12 @@ Camera:
   m_RenderingPath: -1
   m_TargetTexture: {fileID: 0}
   m_TargetDisplay: 0
-  m_TargetEye: 0
+  m_TargetEye: 3
   m_HDR: 1
-  m_AllowMSAA: 0
+  m_AllowMSAA: 1
   m_AllowDynamicResolution: 0
   m_ForceIntoRT: 0
-  m_OcclusionCulling: 0
+  m_OcclusionCulling: 1
   m_StereoConvergence: 10
   m_StereoSeparation: 0.022
 --- !u!4 &519420032
@@ -385,12 +385,23 @@ MonoBehaviour:
   m_Script: {fileID: 11500000, guid: 584ea0f557c97344f9b229261554243d, type: 3}
   m_Name: 
   m_EditorClassIdentifier: 
-  player: {fileID: 1192490554}
+  player: {fileID: 540821988}
   offsetX: 3
   offsetY: 2
   offsetZ: -10
   lerpValue: 3.5
   targetPos: {x: 0, y: 0, z: 0}
+--- !u!114 &540821988 stripped
+MonoBehaviour:
+  m_CorrespondingSourceObject: {fileID: 3571941038519084336, guid: 5b538f610930dd743a096c582e2810f4, type: 3}
+  m_PrefabInstance: {fileID: 3571941039474348810}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 0}
+  m_Enabled: 1
+  m_EditorHideFlags: 0
+  m_Script: {fileID: 11500000, guid: 0b46e3a90d8fc304caef18f1c373478c, type: 3}
+  m_Name: 
+  m_EditorClassIdentifier: 
 --- !u!1 &585662580
 GameObject:
   m_ObjectHideFlags: 0
@@ -428,17 +439,6 @@ Transform:
   m_Father: {fileID: 0}
   m_RootOrder: 2
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
---- !u!114 &1192490554 stripped
-MonoBehaviour:
-  m_CorrespondingSourceObject: {fileID: 3571941038519084336, guid: 5b538f610930dd743a096c582e2810f4, type: 3}
-  m_PrefabInstance: {fileID: 3571941039474348810}
-  m_PrefabAsset: {fileID: 0}
-  m_GameObject: {fileID: 0}
-  m_Enabled: 1
-  m_EditorHideFlags: 0
-  m_Script: {fileID: 11500000, guid: 0b46e3a90d8fc304caef18f1c373478c, type: 3}
-  m_Name: 
-  m_EditorClassIdentifier: 
 --- !u!1 &1360535226
 GameObject:
   m_ObjectHideFlags: 0