public void DamageEnemy(int damage) { enemyStats.curHealth -= damage; if (enemyStats.curHealth > 30 && enemyStats.curHealth < 70) { originalColour = new Color32(255, 165, 0, 255); } else if (enemyStats.curHealth < 40) { originalColour = new Color32(255, 0, 0, 255); } if (enemyStats.curHealth <= 0) { GameMaster.KillEnemy(this); } if (statusIndicator != null) { statusIndicator.SetHealth(enemyStats.curHealth, enemyStats.maxHealth); timeToStopRed = Time.time + turnRed; statusIndicator.SetColour(255, 0, 0); } }