SZAND\msx_2 7 bulan lalu
induk
melakukan
79413bb6aa

+ 18 - 0
ActionTowerDefense/Assets/Editor/ChooseAttackInfo.cs

@@ -0,0 +1,18 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class ChooseAttackInfo : MonoBehaviour
+{
+    // Start is called before the first frame update
+    void Start()
+    {
+        
+    }
+
+    // Update is called once per frame
+    void Update()
+    {
+        
+    }
+}

+ 11 - 0
ActionTowerDefense/Assets/Editor/ChooseAttackInfo.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: db2ac6a07ed200e4d88a0e57325b1c8e
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 8 - 0
ActionTowerDefense/Assets/Resources/Prefab/Attack.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 94c78fec80db231469bd4f9f0e8f562e
+folderAsset: yes
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 1 - 4
ActionTowerDefense/Assets/Scripts/Characters/Demonic.cs

@@ -64,10 +64,7 @@ public class Demonic : MoveCharacter
 
     public override void FixedUpdate()
     {
-        if (!attackController.isNonAttack)
-        {
-            OnSearchState();
-        }
+        OnSearchState();
         OnState();
     }
 

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

@@ -43,7 +43,6 @@ public class Spirits_Invisible : MonoBehaviour
         {
             gameObject.SetActive(false);
         }
-        demonic.attackController.isNonAttack = true;
     }
 
     // Update is called once per frame