private OptionInfo CreateOptionSpot(FontData f, float y, string text, OptionType type) { int defaultValue = PD.GetCharSelOptionVal((int)type + "_" + (int)PD.gameType); TextMesh g = GetMeshText(new Vector3(0.0f, y), GetXmlValue(top, text), f); f.anchor = TextAnchor.MiddleLeft; f.align = TextAlignment.Left; TextMesh t = GetMeshText(new Vector3(0.4f, y), defaultValue.ToString(), f); if (type == OptionType.Special) { t.text = GetSpecialText(defaultValue); } else if (type == OptionType.TrainingMode) { t.text = GetTrainingModeText(defaultValue); } GameObject col = GetCollider("SpecCol", new Vector3(0.6f, y), 0.5555f, 1.15f); return(new OptionInfo(t, g.gameObject, col, type, defaultValue)); }