internal static void AddBehaviour(Il2CppBehaviour behaviour) { if (!behaviours.Contains(behaviour)) { behaviours.Add(behaviour); } }
internal static void RemoveBehaviour(Il2CppBehaviour behaviour) { int index = behaviours.IndexOf(behaviour); if (index > -1) { behaviours.RemoveAt(index); behaviour.OnRemovedFromRegistry(); } }