CharacterColliders.cs 802 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class CharacterColliders : MonoBehaviour
  5. {
  6. public Character owner;
  7. public float hitRate = 1;
  8. public bool isDemSummon;
  9. private void Awake()
  10. {
  11. owner = GetComponentInParent<Character>();
  12. }
  13. public void Test()
  14. {
  15. }
  16. public void Attack_summonShootEvent(int shootId)
  17. {
  18. if (owner == null)
  19. {
  20. owner = GetComponentInParent<Character>();
  21. }
  22. owner.attackController.AttackShootEvent(1, shootId);
  23. }
  24. public void Attack_marchShootEvent(int shootId)
  25. {
  26. if (owner == null)
  27. {
  28. owner = GetComponentInParent<Character>();
  29. }
  30. owner.attackController.AttackShootEvent(2, shootId);
  31. }
  32. }