Пример #1
0
 void Update()
 {
     healthBar.value = (currentHealth / maxHealth);
     if (currentHealth <= 0)
     {
         Die();
     }
     movementSystem.Move();
     combatSystem.ManageAttack();
 }
Пример #2
0
 void Update()
 {
     selectIndicator.SetActive(selected && GameManager.gm.RTSMode);
     healthBar.value = (currentHealth / maxHealth);
     if (currentHealth <= 0)
     {
         Die();
     }
     movementSystem.Move();
     combatSystem.ManageAttack();
     if (selected)
     {
         selected = false;
     }
 }
Пример #3
0
 private void Update()
 {
     combatSystem.ManageAttack();
 }
Пример #4
0
 void Update()
 {
     movementSystem.Move();
     combatSystem.ManageAttack();
 }