HandWeapon.cs 549 B

12345678910111213141516171819202122
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace KairoEngine.CharacterSystem
  5. {
  6. public class HandWeapon : MonoBehaviour
  7. {
  8. public GameObject particleSystemGroup;
  9. public Collider weaponCollider;
  10. public Collider damageTrigger;
  11. void OnStart()
  12. {
  13. damageTrigger.enabled = false;
  14. DamageEmitter damageEmitter = gameObject.GetComponent<DamageEmitter>();
  15. if(damageEmitter != null) damageEmitter.enabled = false;
  16. }
  17. }
  18. }