public static bool edit(Sentance val) { string before = val.ToString(); if (edit(ref before)) { val.SetTranslation(before); return(change); } return(false); }
public static void PEGI(this List <Sentance> options) { pegi.newLine(); for (int i = 0; i < options.Count; i++) {// Sentance s in options) { Sentance s = options[i]; s.PEGI(); if (pegi.Click("X", 35)) { options.RemoveAt(i); } pegi.newLine(); } if (pegi.Click("Add Text")) { options.Add(new Sentance(null)); } }