CharacterColliders.cs 494 B

12345678910111213141516171819202122232425262728
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class CharacterColliders : MonoBehaviour
  5. {
  6. public Character owner;
  7. private void Awake()
  8. {
  9. owner = GetComponentInParent<Character>();
  10. }
  11. public void Test()
  12. {
  13. }
  14. public void Attack1ShootEvent(int shootId)
  15. {
  16. owner.AttackShootEvent(1, shootId);
  17. }
  18. public void Attack2ShootEvent(int shootId)
  19. {
  20. owner.AttackShootEvent(2, shootId);
  21. }
  22. }