summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/Controller/MonsterController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Unit/Controller/MonsterController.cs')
-rw-r--r--Assets/Scripts/Unit/Controller/MonsterController.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Assets/Scripts/Unit/Controller/MonsterController.cs b/Assets/Scripts/Unit/Controller/MonsterController.cs
index 5dca47d8..981e6d4b 100644
--- a/Assets/Scripts/Unit/Controller/MonsterController.cs
+++ b/Assets/Scripts/Unit/Controller/MonsterController.cs
@@ -49,11 +49,12 @@ public class MonsterController : UnitController
}
string path = hitbox.sparkPath;
- GameObject vfx = ResourceManager.Instance.LoadAsset<GameObject>(path);
+ GameObject vfx = ResourceManager.Instance.LoadAsset<GameObject>(path);
if(vfx != null)
{
GameObject go = GameObject.Instantiate(vfx);
- go.transform.position = center;
+ go.transform.position = center + hitbox.sparkOffset;
+ go.transform.localScale = hitbox.sparkScale;
}
}