public void TextAppearance(EPICKUP type) { if (type == EPICKUP.ProtectedShield) { ScaleAndColor(blue, small, "Protecion Shield"); } else if (type == EPICKUP.DamageShield) { ScaleAndColor(red, small, "Damage Shield"); } }
public void TextAppearance(int value, EPICKUP type) { if (type == EPICKUP.Ammo) { ScaleAndColor(brown, small, "+", value, "Eggs"); } else if (type == EPICKUP.cash) { ScaleAndColor(gold, 1.3f, "+", value, "$"); } else if (type == EPICKUP.Consumable) { ScaleAndColor(green, small, "-", value, "Hunger"); } else if (type == EPICKUP.ProtectedShield || type == EPICKUP.DamageShield) { TextAppearance(type); } }
public void CreateScoreText(int score, EPICKUP type) { TextSettings(); ft.TextAppearance(score, type); }