public void RunCombatForTurn() { // For testing purposes we're going to start with just assuming everyone's in combat with each other in one big melee, // this obviously needs to change soon but it'll be enough for early testing. var units = GameObject.FindGameObjectsWithTag ("Unit").Select (u => u.GetComponent<Unit>()); var playerUnits = units.Where (u => u.Friendly); var enemyUnits = units.Where (u => !u.Friendly); Combat testCombat = new Combat (playerUnits, enemyUnits); testCombat.Run (); }