void Awake() { Instance = this; //Add the TMP and normal fonts to their respective dictionaries which will be the same order as the list for (var i = 0; i < fontsTMP.Count; i++) { fontDictTMP.Add((FontsTypes)i, fontsTMP[i]); } for (var i = 0; i < fontsText.Count; i++) { fontsDictText.Add((FontsTypes)i, fontsText[i]); } }
public void TogglePresentationMode() { PresentationModeTurnedOn = !PresentationModeTurnedOn; if (PresentationModeChanged != null) { PresentationModeChanged(this, EventArgs.Empty); } if (PresentationModeTurnedOn) { FontChanger.TurnOn(); Telemetry.WriteEvent("Presentation Mode"); } else { FontChanger.TurnOff(); } }
void OnEnable() { changer = target as FontChanger; inspector = new FontChangeDataArrInspector(changer, "changes"); }