public void ResetEnemy() { myHealth = GetComponent <HealthBehavior>(); myOffense = GetComponent <OffenseBehavior>(); myHealth.ResetHealth(); myHealth.UpdateHealthBar(); Invoke("AttackCyclePrimer", attackRateInSeconds); }
private void Start() { myHealth = GetComponent <HealthBehavior>(); myOffense = GetComponent <OffenseBehavior>(); gameState = GameObject.FindObjectOfType <ProgressTracker>(); myHealth.ResetHealth(); myHealth.UpdateHealthBar(); if (items[0]) { SetItemUsesToMax(); } }