optimized level, updated shooting system, and fixed enemy death still causing damage bug
This commit is contained in:
@ -46,6 +46,11 @@ public class SkinlessMonsterComponent : MonoBehaviour
|
||||
private InGameManager manager;
|
||||
private bool prePauseStoppedState = false;
|
||||
|
||||
[SerializeField]
|
||||
private BoxCollider leftHandDamage;
|
||||
[SerializeField]
|
||||
private BoxCollider rightHandDamage;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
//Find active player rn.
|
||||
@ -310,7 +315,11 @@ public class SkinlessMonsterComponent : MonoBehaviour
|
||||
if(isAlive&&player.IsAlive)
|
||||
SetLiveTargeting();
|
||||
timeSinceTarget += Time.deltaTime;
|
||||
|
||||
if (this.isAlive)
|
||||
{
|
||||
leftHandDamage.enabled = false;
|
||||
rightHandDamage.enabled = false;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user