public static TestStruct[] InitSomeStructs(int count)
    {
        var result = PackedArray.New <TestStruct>(count);

        for (var i = 0; i < count; i++)
        {
            result[i] = new TestStruct(i);
        }

        return(result);
    }
示例#2
0
 public static IntFloatPair[] MakeArray()
 {
     return(PackedArray.New <IntFloatPair>(16));
 }