DamagePoint.cs 717 B

123456789101112131415161718192021222324
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Sirenix.OdinInspector;
  5. namespace KairoEngine.CharacterSystem
  6. {
  7. public class DamagePoint : MonoBehaviour
  8. {
  9. public DamageController damageController;
  10. public float damageMultiplier = 1f;
  11. // public void OnCollisionEnter(Collision collision)
  12. // {
  13. // Vector3 point = collision.contacts[0].point;
  14. // if (collision.gameObject.tag == "Bullet")
  15. // {
  16. // Bullet bullet = collision.gameObject.GetComponent<Bullet>();
  17. // damageController.Damage(bullet, point, damageMultiplier);
  18. // }
  19. // }
  20. }
  21. }