Exemplo n.º 1
0
        /*
         * Static.
         */

        public static AdaptiveActivatorItem New(GameObject gameObject)
        {
            var item = new AdaptiveActivatorItem
            {
                gameObject = gameObject
            };

            return(item);
        }
Exemplo n.º 2
0
        private void Reset()
        {
            if (items == null)
            {
                items = new AdaptiveActivatorItem[] { }
            }
            ;
            else
            {
                UnityEditor.ArrayUtility.Clear(ref items);
            }

            UnityEditor.ArrayUtility.Add(ref items, AdaptiveActivatorItem.New(null));
        }