diff options
Diffstat (limited to 'Assets/Scripts/Unit/Controller/MonsterController.cs')
-rw-r--r-- | Assets/Scripts/Unit/Controller/MonsterController.cs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Assets/Scripts/Unit/Controller/MonsterController.cs b/Assets/Scripts/Unit/Controller/MonsterController.cs index 981e6d4b..9e7e7955 100644 --- a/Assets/Scripts/Unit/Controller/MonsterController.cs +++ b/Assets/Scripts/Unit/Controller/MonsterController.cs @@ -6,14 +6,6 @@ public class MonsterController : UnitController {
public override UnitType type { get { return UnitType.Monster; } }
- public Vector3 center
- {
- get
- {
- return GetComponentInChildren<Renderer>().bounds.center;
- }
- }
-
public override void Initialize(GameObject obj, string folder)
{
base.Initialize(obj, folder);
@@ -58,4 +50,10 @@ public class MonsterController : UnitController }
}
+ public override void OnGetShot(CollisionInfo info)
+ {
+ monsterState.ChangeState(MonsterState.EUnitState.HitLight, new MonsterState.HitLightParam());
+ }
+
+
}
\ No newline at end of file |