public static void Unsubscribe(this GameObject go, GameObject target, int hash, Action <object> handler) { KMonoBehaviour component = go.GetComponent <KMonoBehaviour>(); if ((UnityEngine.Object)component != (UnityEngine.Object)null) { component.Unsubscribe(target, hash, handler); } }
public static void Unsubscribe(this GameObject go, int id) { KMonoBehaviour component = go.GetComponent <KMonoBehaviour>(); if ((UnityEngine.Object)component != (UnityEngine.Object)null) { component.Unsubscribe(id); } }
private void UnregisterEvents() { if (areEventsRegistered) { areEventsRegistered = false; KMonoBehaviour kMonoBehaviour = identityObject as KMonoBehaviour; if (!((UnityEngine.Object)kMonoBehaviour == (UnityEngine.Object)null)) { kMonoBehaviour.Unsubscribe(540773776, OnRoleChanged); } } }