photonView 空指针异常

1.OBJ上要有PhotonView 脚本

2.PhotonNetwork.Instantiate方法初始化出来OBJ

  OBJ 预制体要放在Resources文件夹下

  PhotonNetwork.Instantiate(this.playerPrefab.name,transform.position, Quaternion.identity, 0);

  

posted @ 2017-05-02 15:17  alps_01  阅读(411)  评论(0编辑  收藏  举报