public Color GetBracketColor(Targetable bracketOwner, Targetable bracketTarget) { TargetRelationship relationship; if (!bracketOwner || !bracketTarget) { relationship = TargetRelationship.Neutral; } else { relationship = bracketOwner.RelationshipTo(bracketTarget); } switch (relationship) { case TargetRelationship.FleetMember: return FleetMemberColor; case TargetRelationship.Friendly: return FriendlyColor; case TargetRelationship.Hostile: return HostileColor; case TargetRelationship.Resource: return ResourceColor; default: return Color.white; } }