| 12345678910111213141516171819202122232425 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.U2D;
- public class BeHitTrigger : MonoBehaviour
- {
- public Character owner;
- public int attackerID; //¹¥»÷·½
- private void Awake()
- {
- owner = GetComponentInParent<Character>();
- }
- private void OnTriggerEnter(Collider other)
- {
-
- }
- public void BeHit(int damage, Vector3 force, bool changeHurt, float repelValue)
- {
- owner.BeHit(damage, force, changeHurt, repelValue);
- }
- }
|