| 12345678910111213141516171819202122232425262728293031323334353637 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class CharacterColliders : MonoBehaviour
- {
- public Character owner;
- public float hitRate = 1;
- private void Awake()
- {
- owner = GetComponentInParent<Character>();
- }
- public void Test()
- {
- }
- public void Attack_summonShootEvent(int shootId)
- {
- if (owner == null)
- {
- owner = GetComponentInParent<Character>();
- }
- owner.AttackShootEvent(1, shootId);
- }
- public void Attack_marchShootEvent(int shootId)
- {
- if (owner == null)
- {
- owner = GetComponentInParent<Character>();
- }
- owner.AttackShootEvent(2, shootId);
- }
- }
|