public void AttackBlue() { if (currentBlue > 4 && !defeated) { currentBlue -= 5; bar.SetBlue(currentBlue); int otherHP = FindPlayer(Color.Blue).currentHP -= 5; FindPlayer(Color.Blue).bar.SetHP(otherHP); FindObjectOfType <TurnManager>().ResetPass(); FindObjectOfType <TurnManager>().NextTurn(); } else { FindObjectOfType <TurnManager>().Pass(); } }