public string ExportFaction() { string contents = "{\n"; contents += "name:" + factionName + "\n"; contents += "factionColor:" + MeshMaker.ColorToHex(factionColor) + "\n"; contents += "}\n"; return(contents); }
// Use this for initialization void Start() { Faction unowned = new Faction(); unowned.factionName = "Unowned"; unowned.factionColor = new Color(208f / 255f, 164f / 255f, 80f / 255f); unowned.colorString = MeshMaker.ColorToHex(unowned.factionColor); factions.Add(unowned); }
public Faction() { colorString = MeshMaker.ColorToHex(factionColor); }