public static void AddSkinColorChangeListener(UnityAction <int> listener) { skinColorListener = listener; if (generalInvoker != null) { generalInvoker.AddSkinColorListener(skinColorListener); } }
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); } }