public static void AddNameChangeListener(UnityAction <string> listener) { nameChangeListener = listener; if (generalInvoker != null) { generalInvoker.AddNameChangeListener(nameChangeListener); } }
public static void AddGeneralInvoker(GeneralSettings script) { generalInvoker = script; if (nameChangeListener != null) { generalInvoker.AddNameChangeListener(nameChangeListener); } if (genderChangeListener != null) { generalInvoker.AddGenderChangeListener(genderChangeListener); } if (heightChangeListener != null) { generalInvoker.AddHeightChangeListener(heightChangeListener); } if (skinColorListener != null) { generalInvoker.AddSkinColorListener(skinColorListener); } }