monster数据添加

This commit is contained in:
2025-12-26 18:19:12 +08:00
parent efe8b1b6e0
commit 732b97cc95
7 changed files with 242 additions and 389 deletions
@@ -42,6 +42,7 @@ public class BullitMove : MonoBehaviour
if (collision.tag == "Monster")
{
isTriggerFirst=false;
//击中特效
Instantiate(effectPrefab,transform.position,Quaternion.identity);
//受激
collision.transform.GetComponent<MonsterControl>().monsterData.charactersHealth.OnHurt(10, CharacterHurtType.none);