/* * Static. */ public static AdaptiveActivatorItem New(GameObject gameObject) { var item = new AdaptiveActivatorItem { gameObject = gameObject }; return(item); }
private void Reset() { if (items == null) { items = new AdaptiveActivatorItem[] { } } ; else { UnityEditor.ArrayUtility.Clear(ref items); } UnityEditor.ArrayUtility.Add(ref items, AdaptiveActivatorItem.New(null)); }