| 1234567891011121314151617181920212223242526272829303132333435 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.U2D;
- public class BeHitTrigger : MonoBehaviour
- {
- public Character owner;
- public int attackerID; //攻击方
- [Header("当前X值(攻击值-抗击打值)")]
- [DisplayOnly]
- public int curX;
- private void Awake()
- {
- owner = GetComponentInParent<Character>();
- }
- public void BeHit(int damage)
- {
- owner.BeHit(damage);
- }
- public void BeHit(AttackInfo attackInfo, Character attackFrom)
- {
- owner.BeHit(attackInfo,attackFrom);
- }
- private void Update()
- {
- }
- }
|