我将 PUN 1.22 集成到我的 Unity3d wp8 项目中。它构建正确,但 PhotonView.Get(this) 返回 null。会是什么?
public static PhotonView Get(Component component)
{
return component.GetComponent<PhotonView>() as PhotonView;
}
public static PhotonView Get(GameObject gameObj)
{
return gameObj.GetComponent<PhotonView>() as PhotonView;
}