public void mergeFrom(System.IO.MemoryStream input) { ASRuntime.flash.utils.ByteArray byteArray; var obj = player.createByteArrayObject(out byteArray); byteArray.AttachMemoryStream(input, true); player.invokeMethod(as3Object, "mergeFrom", obj); byteArray.DetachMemoryStream(); afterMergeFrom(); }
// Update is called once per frame void Update() { if (player != null && main != null && updatemethod != null) { player.invokeMethod(main, updatemethod); } }