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