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