Bläddra i källkod

无敌状态加描边

LAPTOP-OM1V99U2\永远de小亡灵 1 år sedan
förälder
incheckning
ce4a476787
20 ändrade filer med 164 tillägg och 74 borttagningar
  1. 10 3
      ActionTowerDefense/Assets/Resources/Prefab/Demonic_Arrow.prefab
  2. 16 5
      ActionTowerDefense/Assets/Resources/Prefab/Demonic_Giant.prefab
  3. 16 8
      ActionTowerDefense/Assets/Resources/Prefab/Demonic_Sword.prefab
  4. 3 2
      ActionTowerDefense/Assets/Resources/Prefab/Player.prefab
  5. 4 4
      ActionTowerDefense/Assets/Resources/Prefab/Transfiguration/Trans_Assassin.prefab
  6. 6 4
      ActionTowerDefense/Assets/Resources/Prefab/Transfiguration/Trans_Cook.prefab
  7. 6 4
      ActionTowerDefense/Assets/Resources/Prefab/Transfiguration/Trans_Float.prefab
  8. 3 3
      ActionTowerDefense/Assets/Resources/Prefab/Transfiguration/Trans_Invisible.prefab
  9. 1 1
      ActionTowerDefense/Assets/Resources/Spine/Spirits_Assassin/Spirits_Assassin_Material_Outline 1.mat
  10. 1 1
      ActionTowerDefense/Assets/Resources/Spine/Spirits_Cook/Spirits_Cook_Material-Additive_Outline 1.mat
  11. 1 1
      ActionTowerDefense/Assets/Resources/Spine/Spirits_Cook/Spirits_Cook_Material_Outline 1.mat
  12. 1 1
      ActionTowerDefense/Assets/Resources/Spine/demon_arrow/demon_arrow_Material_Outline 1.mat
  13. 1 1
      ActionTowerDefense/Assets/Resources/Spine/demon_giant/demon_diant_Material_Outline 1.mat
  14. 1 1
      ActionTowerDefense/Assets/Resources/Spine/demon_sword/demon_sword_Material_Outline 1.mat
  15. 43 0
      ActionTowerDefense/Assets/Resources/Spine/king_devil/king_deil_Material_Outline 1.mat
  16. 8 0
      ActionTowerDefense/Assets/Resources/Spine/king_devil/king_deil_Material_Outline 1.mat.meta
  17. 1 1
      ActionTowerDefense/Assets/Resources/Spine/spirits_float/Spirits_Float_Material-Additive_Outline 1.mat
  18. 1 1
      ActionTowerDefense/Assets/Resources/Spine/spirits_float/Spirits_Float_Material_Outline 1.mat
  19. 40 33
      ActionTowerDefense/Assets/Scripts/MoveCharacter.cs
  20. 1 0
      ActionTowerDefense/Assets/Scripts/Spirits/InvisibleEffect.cs

+ 10 - 3
ActionTowerDefense/Assets/Resources/Prefab/Demonic_Arrow.prefab

@@ -970,6 +970,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   isTran: 0
   pc: {fileID: 0}
+  isSpirit: 0
   HitCols:
   - {fileID: 1190225091429982147}
   - {fileID: 5388987656270167698}
@@ -1041,8 +1042,6 @@ MonoBehaviour:
   attackToFloat: 0
   floatTimes: 0
   hasFloatTimes: 0
-  isSoulUnstable: 0
-  soulUnstableTime: 0
   criticalChance: 0
   criticalMultiplier: 0
   canMove: 1
@@ -1081,7 +1080,8 @@ MonoBehaviour:
   mats: []
   outlineMats:
   - {fileID: 2100000, guid: b634d447d9a02a14abc964532eedfc35, type: 2}
-  outline1Mats: []
+  outline1Mats:
+  - {fileID: 2100000, guid: 916bb121eaeae3b43914636f946abdcd, type: 2}
   playerMe: {fileID: 0}
   playerAni: {fileID: 0}
   playerCol: {fileID: 0}
@@ -1098,6 +1098,9 @@ MonoBehaviour:
   canNotChangeHurt: 0
   soulPrefab: {fileID: 0}
   soulStartSpeed: 1
+  easyToGetHit: 0.2
+  isInvincible: 0
+  player: {fileID: 0}
   id: 0
   costMp: 25
   totalSummonTime: 0.5
@@ -1114,6 +1117,10 @@ MonoBehaviour:
   hasEffect: 0
   soulCollector: {fileID: 0}
   isBack: 0
+  runSpeed: 0
+  attributeUpEffect: {fileID: 0}
+  hasUp: 0
+  isFirst: 1
 --- !u!54 &8639832132491289349
 Rigidbody:
   m_ObjectHideFlags: 0

+ 16 - 5
ActionTowerDefense/Assets/Resources/Prefab/Demonic_Giant.prefab

@@ -97,10 +97,8 @@ MonoBehaviour:
   force: {x: 0, y: 0, z: 0}
   changeHurt: 0
   repelValue: 0
-  spiritsAttackEffect: {fileID: 0}
   offsetY: 1
   hitRate: 1
-  Miss: {fileID: 6380148097413123628, guid: b0832b9907489bd44a617b760ccfd8c8, type: 3}
 --- !u!1 &2460330936527559963
 GameObject:
   m_ObjectHideFlags: 0
@@ -430,6 +428,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   isTran: 0
   pc: {fileID: 0}
+  isSpirit: 0
   HitCols:
   - {fileID: 4480734502875862885}
   - {fileID: 2460330936527559963}
@@ -484,9 +483,13 @@ MonoBehaviour:
   rope: {fileID: 0}
   hasHpUp: 0
   beLarger: 0
+  canHitFloat: 0
+  floatProbability: 0
   attackToFloat: 0
-  isSoulUnstable: 0
-  soulUnstableTime: 0
+  floatTimes: 0
+  hasFloatTimes: 0
+  criticalChance: 0
+  criticalMultiplier: 0
   canMove: 1
   foot: {fileID: 5440846222604650418}
   extraRiseGravity: -28.8
@@ -523,7 +526,8 @@ MonoBehaviour:
   mats: []
   outlineMats:
   - {fileID: 2100000, guid: a30e0c3d2b8bf4e43a76fc2d5b3884cd, type: 2}
-  outline1Mats: []
+  outline1Mats:
+  - {fileID: 2100000, guid: 82f4327af6aa844459ee45d1f72de829, type: 2}
   playerMe: {fileID: 0}
   playerAni: {fileID: 0}
   playerCol: {fileID: 0}
@@ -540,6 +544,9 @@ MonoBehaviour:
   canNotChangeHurt: 0
   soulPrefab: {fileID: 0}
   soulStartSpeed: 1
+  easyToGetHit: 0.2
+  isInvincible: 0
+  player: {fileID: 0}
   id: 0
   costMp: 150
   totalSummonTime: 0.5
@@ -556,6 +563,10 @@ MonoBehaviour:
   hasEffect: 0
   soulCollector: {fileID: 0}
   isBack: 0
+  runSpeed: 0
+  attributeUpEffect: {fileID: 0}
+  hasUp: 0
+  isFirst: 1
 --- !u!54 &5440846222648032765
 Rigidbody:
   m_ObjectHideFlags: 0

+ 16 - 8
ActionTowerDefense/Assets/Resources/Prefab/Demonic_Sword.prefab

@@ -174,6 +174,7 @@ MonoBehaviour:
   m_EditorClassIdentifier: 
   isTran: 0
   pc: {fileID: 0}
+  isSpirit: 0
   HitCols:
   - {fileID: 6526817785665782971}
   - {fileID: 8769150919382874379}
@@ -185,7 +186,6 @@ MonoBehaviour:
   rb: {fileID: 2437299196472462355}
   bodyTrans: {fileID: 2730232521377132808}
   beSearchTrigger: {fileID: 1317309795988277421}
-  attackTrigger: {fileID: 4347565098670608659}
   uiHp: {fileID: 6433555643392153575}
   state: 0
   attackTime: 0
@@ -229,9 +229,13 @@ MonoBehaviour:
   rope: {fileID: 0}
   hasHpUp: 0
   beLarger: 0
+  canHitFloat: 0
+  floatProbability: 0
   attackToFloat: 0
-  isSoulUnstable: 0
-  soulUnstableTime: 0
+  floatTimes: 0
+  hasFloatTimes: 0
+  criticalChance: 0
+  criticalMultiplier: 0
   canMove: 1
   foot: {fileID: 2437299196663985756}
   extraRiseGravity: -28.8
@@ -268,7 +272,8 @@ MonoBehaviour:
   mats: []
   outlineMats:
   - {fileID: 2100000, guid: 7d50f910288e95b4285a5fb549c94fe6, type: 2}
-  outline1Mats: []
+  outline1Mats:
+  - {fileID: 2100000, guid: 79dada70fee9fbc49a327168481d3def, type: 2}
   playerMe: {fileID: 0}
   playerAni: {fileID: 0}
   playerCol: {fileID: 0}
@@ -285,6 +290,9 @@ MonoBehaviour:
   canNotChangeHurt: 0
   soulPrefab: {fileID: 0}
   soulStartSpeed: 1
+  easyToGetHit: 0.2
+  isInvincible: 0
+  player: {fileID: 0}
   id: 0
   costMp: 100
   totalSummonTime: 0.5
@@ -301,6 +309,10 @@ MonoBehaviour:
   hasEffect: 0
   soulCollector: {fileID: 0}
   isBack: 0
+  runSpeed: 0
+  attributeUpEffect: {fileID: 0}
+  hasUp: 0
+  isFirst: 1
 --- !u!54 &2437299196472462355
 Rigidbody:
   m_ObjectHideFlags: 0
@@ -639,12 +651,8 @@ MonoBehaviour:
   force: {x: 0, y: 0, z: 0}
   changeHurt: 0
   repelValue: 0
-  spiritsAttackEffect: {fileID: 7473170563405908938, guid: 8ad3c225050205945b10657aa300afd6, type: 3}
   offsetY: 1
   hitRate: 1
-  Miss: {fileID: 6380148097413123628, guid: b0832b9907489bd44a617b760ccfd8c8, type: 3}
-  criticalChance: 0
-  criticalMultiplier: 0
 --- !u!1 &7669620205589286043
 GameObject:
   m_ObjectHideFlags: 0

+ 3 - 2
ActionTowerDefense/Assets/Resources/Prefab/Player.prefab

@@ -876,7 +876,8 @@ MonoBehaviour:
   mats: []
   outlineMats:
   - {fileID: 2100000, guid: 81069b2e594d94340983febc6c5ff9b3, type: 2}
-  outline1Mats: []
+  outline1Mats:
+  - {fileID: 2100000, guid: 60af008f6e7aa1549bc707cc9bccad80, type: 2}
   playerMe: {fileID: 0}
   playerAni: {fileID: 0}
   playerCol: {fileID: 0}
@@ -907,7 +908,7 @@ MonoBehaviour:
   - {fileID: 8639832132491289359, guid: 44821b04b647bf84eb8b3ff69cf72c27, type: 3}
   - {fileID: 2437299196472462361, guid: 097d9d3ad9d15304f84fa472858a40aa, type: 3}
   - {fileID: 5440846222648032759, guid: f386ed3093f5a02469dfbae37ca9160b, type: 3}
-  - {fileID: 2437299196472462361, guid: 34659059df3850e43aba0c2c1a03c02a, type: 3}
+  - {fileID: 2437299196472462361, guid: ccc9fcd0c0c762340885f199c1a9d44e, type: 3}
   demonicSummonPos:
   - {x: -1, y: 0, z: 0}
   - {x: -1, y: 0, z: 0}

+ 4 - 4
ActionTowerDefense/Assets/Resources/Prefab/Transfiguration/Trans_Assassin.prefab

@@ -277,8 +277,6 @@ MonoBehaviour:
   attackToFloat: 0
   floatTimes: 0
   hasFloatTimes: 0
-  isSoulUnstable: 0
-  soulUnstableTime: 0
   criticalChance: 0
   criticalMultiplier: 0
   canMove: 1
@@ -317,7 +315,8 @@ MonoBehaviour:
   mats: []
   outlineMats:
   - {fileID: 2100000, guid: eb0e26c1a9cf9a14799273e742b98d21, type: 2}
-  outline1Mats: []
+  outline1Mats:
+  - {fileID: 2100000, guid: c0377aa9339c7e24b94d247d135c8875, type: 2}
   playerMe: {fileID: 0}
   playerAni: {fileID: 0}
   playerCol: {fileID: 0}
@@ -335,7 +334,7 @@ MonoBehaviour:
   soulPrefab: {fileID: 0}
   soulStartSpeed: 1
   easyToGetHit: 0.2
-  canNotBeHit: 0
+  isInvincible: 0
   player: {fileID: 0}
   id: 0
   costMp: 1
@@ -353,6 +352,7 @@ MonoBehaviour:
   hasEffect: 0
   soulCollector: {fileID: 0}
   isBack: 0
+  runSpeed: 0
   attributeUpEffect: {fileID: 0}
   hasUp: 0
   isFirst: 1

+ 6 - 4
ActionTowerDefense/Assets/Resources/Prefab/Transfiguration/Trans_Cook.prefab

@@ -907,8 +907,6 @@ MonoBehaviour:
   attackToFloat: 0
   floatTimes: 0
   hasFloatTimes: 0
-  isSoulUnstable: 0
-  soulUnstableTime: 0
   criticalChance: 0
   criticalMultiplier: 0
   canMove: 0
@@ -949,7 +947,10 @@ MonoBehaviour:
   - {fileID: 2100000, guid: 30969c92738eb7d4da3885e08f1ec2f0, type: 2}
   - {fileID: 2100000, guid: 98fc94309ab120b4c83b2cebb9226222, type: 2}
   - {fileID: 2100000, guid: 30969c92738eb7d4da3885e08f1ec2f0, type: 2}
-  outline1Mats: []
+  outline1Mats:
+  - {fileID: 2100000, guid: 29ff9a6abfa104b479ba1b83d927d484, type: 2}
+  - {fileID: 2100000, guid: 10086c4b51acddf48b22318a9f8f6c7b, type: 2}
+  - {fileID: 2100000, guid: 29ff9a6abfa104b479ba1b83d927d484, type: 2}
   playerMe: {fileID: 0}
   playerAni: {fileID: 0}
   playerCol: {fileID: 0}
@@ -967,7 +968,7 @@ MonoBehaviour:
   soulPrefab: {fileID: 0}
   soulStartSpeed: 1
   easyToGetHit: 0.2
-  canNotBeHit: 0
+  isInvincible: 0
   player: {fileID: 0}
   id: 0
   costMp: 1
@@ -985,6 +986,7 @@ MonoBehaviour:
   hasEffect: 0
   soulCollector: {fileID: 8183667617015717059}
   isBack: 0
+  runSpeed: 0
   attributeUpEffect: {fileID: 0}
   hasUp: 0
   isFirst: 1

+ 6 - 4
ActionTowerDefense/Assets/Resources/Prefab/Transfiguration/Trans_Float.prefab

@@ -1139,8 +1139,6 @@ MonoBehaviour:
   attackToFloat: 0
   floatTimes: 0
   hasFloatTimes: 0
-  isSoulUnstable: 0
-  soulUnstableTime: 0
   criticalChance: 0
   criticalMultiplier: 0
   canMove: 1
@@ -1181,7 +1179,10 @@ MonoBehaviour:
   - {fileID: 2100000, guid: b89f4b5b01e92784ab27611e2b014a10, type: 2}
   - {fileID: 2100000, guid: 0d24ea357a09df448b788aed95b96541, type: 2}
   - {fileID: 2100000, guid: b89f4b5b01e92784ab27611e2b014a10, type: 2}
-  outline1Mats: []
+  outline1Mats:
+  - {fileID: 2100000, guid: 648084fec8d73b041b2b71e496093462, type: 2}
+  - {fileID: 2100000, guid: bf37c470b67b1de4f9019b086d9baaa4, type: 2}
+  - {fileID: 2100000, guid: 648084fec8d73b041b2b71e496093462, type: 2}
   playerMe: {fileID: 0}
   playerAni: {fileID: 0}
   playerCol: {fileID: 0}
@@ -1199,7 +1200,7 @@ MonoBehaviour:
   soulPrefab: {fileID: 0}
   soulStartSpeed: 1
   easyToGetHit: 0.2
-  canNotBeHit: 0
+  isInvincible: 0
   player: {fileID: 0}
   id: 0
   costMp: 1
@@ -1217,6 +1218,7 @@ MonoBehaviour:
   hasEffect: 0
   soulCollector: {fileID: 2509289168932687770}
   isBack: 0
+  runSpeed: 0
   attributeUpEffect: {fileID: 0}
   hasUp: 0
   isFirst: 1

+ 3 - 3
ActionTowerDefense/Assets/Resources/Prefab/Transfiguration/Trans_Invisible.prefab

@@ -211,6 +211,7 @@ MonoBehaviour:
   player: {fileID: 0}
   canInvincible: 0
   maxFlyHeight: 10
+  invisibleEffect: {fileID: 417478504669294145, guid: 716b02349f9519b4fbc01709ad3ada23, type: 3}
 --- !u!114 &2437299196472462353
 MonoBehaviour:
   m_ObjectHideFlags: 0
@@ -285,8 +286,6 @@ MonoBehaviour:
   attackToFloat: 0
   floatTimes: 0
   hasFloatTimes: 0
-  isSoulUnstable: 0
-  soulUnstableTime: 0
   criticalChance: 0
   criticalMultiplier: 0
   canMove: 0
@@ -342,7 +341,7 @@ MonoBehaviour:
   soulPrefab: {fileID: 0}
   soulStartSpeed: 1
   easyToGetHit: 0.2
-  canNotBeHit: 0
+  isInvincible: 0
   player: {fileID: 0}
   id: 0
   costMp: 1
@@ -360,6 +359,7 @@ MonoBehaviour:
   hasEffect: 0
   soulCollector: {fileID: 0}
   isBack: 0
+  runSpeed: 0
   attributeUpEffect: {fileID: 0}
   hasUp: 0
   isFirst: 1

+ 1 - 1
ActionTowerDefense/Assets/Resources/Spine/Spirits_Assassin/Spirits_Assassin_Material_Outline 1.mat

@@ -39,5 +39,5 @@ Material:
     - _ThresholdEnd: 0.25
     - _Use8Neighbourhood: 1
     m_Colors:
-    - _OutlineColor: {r: 0, g: 1, b: 0, a: 1}
+    - _OutlineColor: {r: 1, g: 1, b: 0, a: 1}
   m_BuildTextureStacks: []

+ 1 - 1
ActionTowerDefense/Assets/Resources/Spine/Spirits_Cook/Spirits_Cook_Material-Additive_Outline 1.mat

@@ -46,5 +46,5 @@ Material:
     m_Colors:
     - <noninit>: {r: 0, g: 2.018574, b: 1e-45, a: 0.000007110106}
     - _Color: {r: 1, g: 1, b: 1, a: 1}
-    - _OutlineColor: {r: 0, g: 1, b: 0, a: 1}
+    - _OutlineColor: {r: 1, g: 1, b: 0, a: 1}
   m_BuildTextureStacks: []

+ 1 - 1
ActionTowerDefense/Assets/Resources/Spine/Spirits_Cook/Spirits_Cook_Material_Outline 1.mat

@@ -39,5 +39,5 @@ Material:
     - _ThresholdEnd: 0.25
     - _Use8Neighbourhood: 1
     m_Colors:
-    - _OutlineColor: {r: 0, g: 1, b: 0, a: 1}
+    - _OutlineColor: {r: 1, g: 1, b: 0, a: 1}
   m_BuildTextureStacks: []

+ 1 - 1
ActionTowerDefense/Assets/Resources/Spine/demon_arrow/demon_arrow_Material_Outline 1.mat

@@ -86,7 +86,7 @@ Material:
     - _EmissionColor: {r: 0, g: 0, b: 0, a: 0}
     - _FillColor: {r: 1, g: 1, b: 1, a: 1}
     - _FixedNormal: {r: 0, g: 0, b: 1, a: 1}
-    - _OutlineColor: {r: 0, g: 1, b: 0, a: 1}
+    - _OutlineColor: {r: 1, g: 1, b: 0, a: 1}
     - _OverlayColor: {r: 0, g: 0, b: 0, a: 0}
     - _RimColor: {r: 1, g: 1, b: 1, a: 1}
   m_BuildTextureStacks: []

+ 1 - 1
ActionTowerDefense/Assets/Resources/Spine/demon_giant/demon_diant_Material_Outline 1.mat

@@ -39,5 +39,5 @@ Material:
     - _ThresholdEnd: 0.1
     - _Use8Neighbourhood: 1
     m_Colors:
-    - _OutlineColor: {r: 0, g: 1, b: 0, a: 1}
+    - _OutlineColor: {r: 1, g: 1, b: 0, a: 1}
   m_BuildTextureStacks: []

+ 1 - 1
ActionTowerDefense/Assets/Resources/Spine/demon_sword/demon_sword_Material_Outline 1.mat

@@ -39,5 +39,5 @@ Material:
     - _ThresholdEnd: 0.1
     - _Use8Neighbourhood: 1
     m_Colors:
-    - _OutlineColor: {r: 0, g: 1, b: 0, a: 0.003921569}
+    - _OutlineColor: {r: 1, g: 1, b: 0, a: 0.003921569}
   m_BuildTextureStacks: []

+ 43 - 0
ActionTowerDefense/Assets/Resources/Spine/king_devil/king_deil_Material_Outline 1.mat

@@ -0,0 +1,43 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!21 &2100000
+Material:
+  serializedVersion: 8
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_Name: king_deil_Material_Outline 1
+  m_Shader: {fileID: 4800000, guid: 28b5cf4804845fe4b868531fd0bb81d5, type: 3}
+  m_ValidKeywords:
+  - _USE8NEIGHBOURHOOD_ON
+  m_InvalidKeywords: []
+  m_LightmapFlags: 4
+  m_EnableInstancingVariants: 0
+  m_DoubleSidedGI: 0
+  m_CustomRenderQueue: -1
+  stringTagMap: {}
+  disabledShaderPasses: []
+  m_SavedProperties:
+    serializedVersion: 3
+    m_TexEnvs:
+    - _MainTex:
+        m_Texture: {fileID: 2800000, guid: b90ffb66ffe9aee46a8cb054e932abd4, type: 3}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    m_Ints: []
+    m_Floats:
+    - _Cutoff: 0.1
+    - _OutlineMipLevel: 0
+    - _OutlineOpaqueAlpha: 1
+    - _OutlineReferenceTexWidth: 1024
+    - _OutlineSmoothness: 1
+    - _OutlineWidth: 8
+    - _StencilComp: 8
+    - _StencilRef: 1
+    - _StraightAlphaInput: 0
+    - _ThresholdEnd: 0.25
+    - _Use8Neighbourhood: 1
+    m_Colors:
+    - _OutlineColor: {r: 1, g: 1, b: 0, a: 1}
+  m_BuildTextureStacks: []

+ 8 - 0
ActionTowerDefense/Assets/Resources/Spine/king_devil/king_deil_Material_Outline 1.mat.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 60af008f6e7aa1549bc707cc9bccad80
+NativeFormatImporter:
+  externalObjects: {}
+  mainObjectFileID: 2100000
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 1 - 1
ActionTowerDefense/Assets/Resources/Spine/spirits_float/Spirits_Float_Material-Additive_Outline 1.mat

@@ -46,5 +46,5 @@ Material:
     m_Colors:
     - <noninit>: {r: 0, g: 2.018574, b: 1e-45, a: 0.000007110106}
     - _Color: {r: 1, g: 1, b: 1, a: 1}
-    - _OutlineColor: {r: 0, g: 1, b: 0, a: 1}
+    - _OutlineColor: {r: 1, g: 1, b: 0, a: 1}
   m_BuildTextureStacks: []

+ 1 - 1
ActionTowerDefense/Assets/Resources/Spine/spirits_float/Spirits_Float_Material_Outline 1.mat

@@ -39,5 +39,5 @@ Material:
     - _ThresholdEnd: 0.25
     - _Use8Neighbourhood: 1
     m_Colors:
-    - _OutlineColor: {r: 0, g: 1, b: 0, a: 1}
+    - _OutlineColor: {r: 1, g: 1, b: 0, a: 1}
   m_BuildTextureStacks: []

+ 40 - 33
ActionTowerDefense/Assets/Scripts/MoveCharacter.cs

@@ -114,44 +114,47 @@ public class MoveCharacter : Character
         curFallSpeed = normalFallSpeed;
     }
 
-    //0:漂浮 1:正常 2:灵魂不稳定
+    //0:漂浮 1:正常 2:无敌
     public void ChangeMat(int state)
     {
-        if(outline1Mats.Length == 0)
+
+        if (outline1Mats.Length == 0)
         {
-            Transform particleSystem = bodyTrans.GetChild(1).GetChild(0);
-            if (particleSystem == null || 
-                ( particleSystem != null && particleSystem.name != "Particle System"))
-            {
-                return;
-            }
-            ParticleSystem.MainModule mainModule;
-            switch (state)
-            {
-                case 0:
-                    break;
-                case 1:
-                    print(particleSystem.name);
-                    mainModule =
-                        particleSystem.GetChild(1).GetComponent<ParticleSystem>().main;
-                    mainModule.startColor = new ParticleSystem.MinMaxGradient(Color.white);
-                    mainModule =
-                        particleSystem.GetChild(2).GetComponent<ParticleSystem>().main;
-                    mainModule.startColor = new ParticleSystem.MinMaxGradient(Color.white);
-                    break;
-                case 2:
-                    mainModule =
-                        particleSystem.GetChild(1).GetComponent<ParticleSystem>().main;
-                    mainModule.startColor = new ParticleSystem.MinMaxGradient(Color.yellow);
-                    mainModule =
-                        particleSystem.GetChild(2).GetComponent<ParticleSystem>().main;
-                    mainModule.startColor = new ParticleSystem.MinMaxGradient(Color.yellow);
-                    break;
-                default:
-                    break;
-            }
             return;
+            //Transform particleSystem = bodyTrans.GetChild(1).GetChild(0);
+            //if (particleSystem == null ||
+            //    (particleSystem != null && particleSystem.name != "Particle System"))
+            //{
+            //    return;
+            //}
+            //ParticleSystem.MainModule mainModule;
+            //switch (state)
+            //{
+            //    case 0:
+            //        break;
+            //    case 1:
+            //        //print(particleSystem.name);
+            //        //mainModule =
+            //        //    particleSystem.GetChild(1).GetComponent<ParticleSystem>().main;
+            //        //mainModule.startColor = new ParticleSystem.MinMaxGradient(Color.white);
+            //        //mainModule =
+            //        //    particleSystem.GetChild(2).GetComponent<ParticleSystem>().main;
+            //        //mainModule.startColor = new ParticleSystem.MinMaxGradient(Color.white);
+            //        break;
+            //    case 2:
+            //        //mainModule =
+            //        //    particleSystem.GetChild(1).GetComponent<ParticleSystem>().main;
+            //        //mainModule.startColor = new ParticleSystem.MinMaxGradient(Color.yellow);
+            //        //mainModule =
+            //        //    particleSystem.GetChild(2).GetComponent<ParticleSystem>().main;
+            //        //mainModule.startColor = new ParticleSystem.MinMaxGradient(Color.yellow);
+            //        break;
+            //    default:
+            //        break;
+            //}
+            
         }
+
         if (spinee == null || mesh == null || mats == null)
         {
             spinee = transform.GetChild(0).GetChild(0).gameObject;
@@ -176,6 +179,10 @@ public class MoveCharacter : Character
     {
         if (!isTran)
         {
+            if (isInvincible)
+            {
+                return;
+            }
             if (canMove)
             {
                 canMove = false;

+ 1 - 0
ActionTowerDefense/Assets/Scripts/Spirits/InvisibleEffect.cs

@@ -34,6 +34,7 @@ public class InvisibleEffect : MonoBehaviour
                 moveCharacter = moveCharacter.pc;
             }
             moveCharacter.isInvincible = true;
+            moveCharacter.ChangeMat(2);
             moveCharacter.invincibleTime = invincibleTime;
         }
     }