Пример #1
0
        internal BufferArray(T[] arr, int length)
        {
            this.Length     = length;
            this.isNotEmpty = (length > 0 && arr != null);

            #if UNITY_EDITOR && EDITOR_ARRAY
            this.arr.data       = arr;
            this.arr.length     = length;
            this.arr.isNotEmpty = this.isNotEmpty;
            #else
            this.arr = arr;
            #endif
        }
Пример #2
0
        public BufferArray(T[] arr, int length, int realLength)
        {
            this.Length    = length;
            this.isCreated = (length > 0 && arr != null);

            #if UNITY_EDITOR && EDITOR_ARRAY
            this.arr.data       = arr;
            this.arr.Length     = (arr != null ? arr.Length : 0);
            this.arr.usedLength = (realLength >= 0 ? realLength : length);
            this.arr.isCreated  = this.isCreated;
            #else
            this.arr = arr;
            #endif
        }
Пример #3
0
 public readonly bool Equals(EditorArr obj)
 {
     return(this.data == obj.data);
 }