private void SetColor() { if (colorOfIdentity == "ab" || colorOfIdentity == "ba") { colorOfIdentity = "ab"; } if (colorOfIdentity == "bc" || colorOfIdentity == "cb") { colorOfIdentity = "bc"; } if (colorOfIdentity == "ca" || colorOfIdentity == "ac") { colorOfIdentity = "ca"; } if (colorOfIdentity.Length > 2) { colorOfIdentity = colorOfIdentity.Substring(0, 2); } ColorIdentity.SetColor(colorOfIdentity, GetComponent <Image>()); }
public void SetColorOfCollector() { ColorIdentity.SetColor(collectorColorId, GetComponent <Image>()); }
public void SetWallColor() { ColorIdentity.SetColor(colorIdentityOfWall, this.GetComponent <Image>()); }
public void SetColorOfGenerator() { ColorIdentity.SetColor(generatorColorId, GetComponent <Image>()); }