diff options
Diffstat (limited to 'Assets/Scripts/Unit/Controller')
-rw-r--r-- | Assets/Scripts/Unit/Controller/MonsterController.cs | 8 |
1 files changed, 2 insertions, 6 deletions
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<GameObject>(path);
+ GameObject vfx = ResourceManager.Instance.LoadAsset<GameObject>(path);
if(vfx != null)
{
GameObject go = GameObject.Instantiate(vfx);
go.transform.position = center;
}
-#endif
}
}
\ No newline at end of file |