Files
DeviantMobile-Rohan/Assets/New Lowpoly Models/Scripts/EnemyCombat.cs
2026-06-26 22:41:39 +05:30

34 lines
1.2 KiB
C#

using UnityEngine;
public class EnemyCombat : MonoBehaviour
{
public GameObject rightHandPunchHitbox;
public GameObject leftHandPunchHitbox;
public GameObject rightFootKickHitbox;
public GameObject leftFootKickHitbox;
void Start()
{
DisableAll();
}
void DisableAll()
{
rightHandPunchHitbox.SetActive(false);
leftHandPunchHitbox.SetActive(false);
rightFootKickHitbox.SetActive(false);
leftFootKickHitbox.SetActive(false);
}
public void EnableRightHandPunchHitbox() => rightHandPunchHitbox.SetActive(true);
public void DisableRightHandPunchHitbox() => rightHandPunchHitbox.SetActive(false);
public void EnableLeftHandPunchHitbox() => leftHandPunchHitbox.SetActive(true);
public void DisableLeftHandPunchHitbox() => leftHandPunchHitbox.SetActive(false);
public void EnableRightFootKickHitbox() => rightFootKickHitbox.SetActive(true);
public void DisableRightFootKickHitbox() => rightFootKickHitbox.SetActive(false);
public void EnableLeftFootKickHitbox() => leftFootKickHitbox.SetActive(true);
public void DisableLeftFootKickHitbox() => leftFootKickHitbox.SetActive(false);
}