void Start() { if (m_resetEvent != null) { m_resetEvent.Raise(); } }
/// <summary> /// Registers the specified sort order comparer for type T. /// /// Note: On platforms without JIT compilation, the supplied comparer should inherit from Smooth.Collections.Comparer<T> in order to force the AOT compiler to create the proper generic types. /// </summary> public static void Register <T>(IComparer <T> comparer) { var comparerType = ComparerType.Comparer; var type = typeof(T); if (comparer == null) { Debug.LogError("Tried to register a null comparer for: " + type.FullName); } else { lock (comparers) { if (comparers.ContainsKey(type)) { OnEvent.Raise(comparerType, EventType.AlreadyRegistered, type); } else { comparers.Add(type, comparer); OnEvent.Raise(comparerType, EventType.Registered, type); } } } }