예제 #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);
 }