Sfoglia il codice sorgente

厨师抓完人碰到自己人也会变回去

SZAND\msx_2 1 anno fa
parent
commit
07d818f9ac

+ 3 - 6
ActionTowerDefense/Assets/Scripts/Spirits/Spirits_Cook.cs

@@ -149,15 +149,12 @@ public class Spirits_Cook : MonoBehaviour
                 }
             }
             //ťŘźŇÂô´Ž
-            /*
+            
             else if (state == cookState.back && target.gameObject.layer == 7)
             {
                 ChangeState(cookState.cook);
-                if (food.layer == 8 && !target.isDie)
-                {
-                    food.GetComponent<Demonic>().ChangeState(CharacterState.Die);
-                }
-            }*/
+                fEne.ChangeState(CharacterState.Die);
+            }
         }
     }