"Ran out of trampolines of type 0/1/2" run-time errors usually occur when using a large number of recursive generics. To see this error you need to connect the device directly to the device to run debugging in order to see, you can imply that the AOT compiler allocates more type 0, type 1, or type 2 trampolines. In addition, the AOT compiler command-line option can be specified in the other settings (other setings) section of player settings (player Settings). For type 1 trampolines, specify NRGCTX-TRAMPOLINES=ABCD, where ABCD is the value required for the new trampolines (such as 4096). For type 2 trampolines, specify NIMT-TRAMPOLINES=ABCD, and for type 0 trampolines, specify NTRAMPOLINES=ABCD.
Set multiple ways as follows: nrgctx-trampolines=8192,nimt-trampolines=8192,ntrampolines=8192
Explanation
nrgctx-trampolines=8096 (These was recursive generics–the default is 1024)
nimt-trampolines=8096 (These-to-do with interfaces and the default is 128)
ntrampolines=4048 (generic method calls, by default there is 1024)
Referenced from: http://whydoidoit.com/2012/08/20/unity-serializer-mono-and-trampolines/