private SaveState StateAssign(CharControl control) { SaveState state = new SaveState { CtrlType = (OCICtrlType)control.controlType, //note to self: enums should match in both CharControl and SaveState X = control.CurrentX, Y = control.CurrentY }; return(state); }
private void GUICheck(CharControl control) { if (control.CheckEntry) { _ui.gameObject.SetActive(true); control.SetAccess(true); GUIValuesUpdate(control.CurrentX, control.CurrentY); } else { control.SetAccess(false); _ui.gameObject.SetActive(false); } }
private void OnNothingChanged(CharControl select) { GUICheck(select); }
//linked to HarmonySelect private void OnChange(CharControl select) { GUICheck(select); }