如何在 Photonview.RPC 调用中发送整数数组

How can I send an integer array in Photonview.RPC call

我正在尝试通过网络将整数数组发送到光子播放器,但我不知道如何发送数组。这是我的方法,但行不通。

photonView.RPC("RPC_Method", player, array)

我如何收到它?

RPC_Method(int[] array)

我需要将其转换为字符串或其他内容吗?

尝试将数组转换为对象:

photonView.RPC("RPC_Method", player, (object)array);