private static int AddPtr(ref int a, int b)
 {
     using (var dll = new NativePluginsManager("Assets/Plugins/UnityDLLforCPP.dll"))
     {
         var tAddPtr = dll.GetDelegate <TAddPtr>("AddPtr");
         return(tAddPtr(ref a, b));
     }
     throw new Exception();
 }
 /*!
  * 引数のref intは正直意味が無い
  */
 private static IntPtr AddArray(ref int ptr, int size, int add)
 {
     using (var dll = new NativePluginsManager("Assets/Plugins/UnityDLLforCPP.dll"))
     {
         var tAddArray = dll.GetDelegate <TAddArray>("AddArray");
         return(tAddArray(ref ptr, size, add));
     }
     throw new Exception();
 }
 private static int HotReloadTest()
 {
     using (var dll = new NativePluginsManager("Assets/Plugins/UnityDLLforCPP.dll"))
     {
         var tHotReloadTest = dll.GetDelegate <THotReloadTest>("HotReloadTest");
         return(tHotReloadTest());
     }
     throw new Exception();
 }