From 86ec4522be1d0b932006801c7bf2297adc9f0028 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 30 Aug 2021 21:11:54 +0800 Subject: *misc --- Assets/Scripts/Unit/Controller/MonsterController.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Assets/Scripts/Unit/Controller/MonsterController.cs') diff --git a/Assets/Scripts/Unit/Controller/MonsterController.cs b/Assets/Scripts/Unit/Controller/MonsterController.cs index 29ac9dcd..5dca47d8 100644 --- a/Assets/Scripts/Unit/Controller/MonsterController.cs +++ b/Assets/Scripts/Unit/Controller/MonsterController.cs @@ -1,9 +1,6 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; -#if UNITY_EDITOR -using UnityEditor; -#endif public class MonsterController : UnitController { @@ -48,17 +45,16 @@ public class MonsterController : UnitController } else if(hitbox.hitResponse == ColliderBox.EHitResponse.HitAir) { + monsterState.ChangeState(MonsterState.EUnitState.HitAir, new MonsterState.HitAirParam()); } string path = hitbox.sparkPath; -#if UNITY_EDITOR - GameObject vfx = AssetDatabase.LoadAssetAtPath(path); + GameObject vfx = ResourceManager.Instance.LoadAsset(path); if(vfx != null) { GameObject go = GameObject.Instantiate(vfx); go.transform.position = center; } -#endif } } \ No newline at end of file -- cgit v1.1-26-g67d0