Browse Source

友方能站在胖子头上,击飞击落落地后layer变回来

WGL 4 months ago
parent
commit
de73b45ad1

+ 3 - 5
ActionTowerDefense/Assets/Resources/Prefab/MySoldier/Demonic_Giant.prefab

@@ -519,6 +519,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   rb: {fileID: 0}
   moveCharacter: {fileID: 0}
+  canOnGiant: 1
   haveGravity: 1
   trigGroundList: []
   platform: {fileID: 0}
@@ -782,8 +783,6 @@ MonoBehaviour:
     isDemSummon: 0
   addAttackEffect: {fileID: 0}
   skill: {fileID: 0}
-  attackEffect: {fileID: 0}
-  effect: {fileID: 0}
   attackDistance: 0
   attackTrigger: {fileID: 7729941002223262554}
   isAttackTriggerOn: 0
@@ -852,7 +851,6 @@ MonoBehaviour:
     maxDownAngle: 0
     shootTrack: 0
     shootAlwaysTrack: 0
-    skillPrefab: {fileID: 0}
     skill: {fileID: 0}
   - id: 1
     attackName: "\u884C\u519B\u5F0F\u6376\u5730"
@@ -912,7 +910,6 @@ MonoBehaviour:
     maxDownAngle: 0
     shootTrack: 0
     shootAlwaysTrack: 0
-    skillPrefab: {fileID: 0}
     skill: {fileID: 0}
   curAttackMethod:
     id: 0
@@ -973,7 +970,6 @@ MonoBehaviour:
     maxDownAngle: 0
     shootTrack: 0
     shootAlwaysTrack: 0
-    skillPrefab: {fileID: 0}
     skill: {fileID: 0}
 --- !u!114 &802636448221205106
 MonoBehaviour:
@@ -1229,6 +1225,8 @@ MeshRenderer:
   m_Materials:
   - {fileID: 2100000, guid: 466a6130b6c56614caef9c2f5961b3a8, type: 2}
   - {fileID: 2100000, guid: dc7a2704fc39fb24997c9f6279033f5c, type: 2}
+  - {fileID: 2100000, guid: 466a6130b6c56614caef9c2f5961b3a8, type: 2}
+  - {fileID: 2100000, guid: dc7a2704fc39fb24997c9f6279033f5c, type: 2}
   m_StaticBatchInfo:
     firstSubMesh: 0
     subMeshCount: 0

+ 1 - 5
ActionTowerDefense/Assets/Resources/Prefab/MySoldier/Demonic_Sword.prefab

@@ -422,8 +422,6 @@ MonoBehaviour:
     isDemSummon: 0
   addAttackEffect: {fileID: 0}
   skill: {fileID: 0}
-  attackEffect: {fileID: 0}
-  effect: {fileID: 0}
   attackDistance: 0
   attackTrigger: {fileID: 4347565098670608659}
   isAttackTriggerOn: 0
@@ -492,7 +490,6 @@ MonoBehaviour:
     maxDownAngle: 0
     shootTrack: 0
     shootAlwaysTrack: 0
-    skillPrefab: {fileID: 0}
     skill: {fileID: 0}
   - id: 1
     attackName: "\u884C\u519B\u5F0F\u6325\u68D2\u5B50"
@@ -552,7 +549,6 @@ MonoBehaviour:
     maxDownAngle: 0
     shootTrack: 0
     shootAlwaysTrack: 0
-    skillPrefab: {fileID: 0}
     skill: {fileID: 0}
   curAttackMethod:
     id: 0
@@ -613,7 +609,6 @@ MonoBehaviour:
     maxDownAngle: 0
     shootTrack: 0
     shootAlwaysTrack: 0
-    skillPrefab: {fileID: 0}
     skill: {fileID: 0}
 --- !u!114 &434976657695320859
 MonoBehaviour:
@@ -687,6 +682,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   rb: {fileID: 0}
   moveCharacter: {fileID: 0}
+  canOnGiant: 1
   haveGravity: 1
   trigGroundList: []
   platform: {fileID: 0}

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

@@ -6234,6 +6234,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   rb: {fileID: 3571941038519084339}
   moveCharacter: {fileID: 0}
+  canOnGiant: 1
   haveGravity: 1
   trigGroundList: []
   platform: {fileID: 0}

+ 1 - 1
ActionTowerDefense/Assets/Scripts/Characters/AttributeStatus.cs

@@ -282,7 +282,7 @@ public class AttributeStatus : MonoBehaviour
                                 transform.position = new Vector3(transform.position.x, character.platformPosY, transform.position.z);
                             }
                             character.ani.Play("weak", 0, 0);
-
+                            character.bodyCollider.layer = character.gameObject.layer;
                             hitState = 1;
                             if (haveLandingDamage)
                             {