public ControllableUnit GetUnitAtTeamA(string unitName) { if(this.teamAUnits.ContainsKey(unitName)) { return this.teamAUnits[unitName]; } else { Debug.LogError(unitName + " does not exist in team A."); return null; } }