Пример #1
0
 /** OnPhotonSerializeView_Player
  */
         #if (USE_DEF_FEE_PUN)
 public void OnPhotonSerializeView_Player(Photon.Pun.PhotonStream a_stream, Photon.Pun.PhotonMessageInfo a_info)
 {
     if (this.networkobject != null)
     {
         if (a_stream.IsWriting)
         {
             this.player_stream_send.SetStream(a_stream);
             this.networkobject.OnSendPlayer(this.player_stream_send);
         }
         else
         {
             this.player_stream_recv.SetStream(a_stream);
             this.networkobject.OnRecvPlayer(this.player_stream_recv);
         }
     }
 }
Пример #2
0
        /** OnPhotonSerializeView_Status
         */
                #if (USE_DEF_FEE_PUN)
        public void OnPhotonSerializeView_Status(Photon.Pun.PhotonStream a_stream, Photon.Pun.PhotonMessageInfo a_info)
        {
            if (this.networkobject != null)
            {
                if (a_stream.IsWriting)
                {
                    this.status_interval--;
                    if (this.status_interval <= 0)
                    {
                        this.status_interval = this.status_interval_max;
                        this.status_stream_send.SetStream(a_stream);
                        this.networkobject.OnSendStatus(this.status_stream_send);
                    }
                }
                else
                {
                    Tool.Log("Recv", "");

                    this.status_stream_recv.SetStream(a_stream);
                    this.networkobject.OnRecvStatus(this.status_stream_recv);
                }
            }
        }
 /** OnPhotonSerializeView
  */
 public void OnPhotonSerializeView(Photon.Pun.PhotonStream a_stream, Photon.Pun.PhotonMessageInfo a_info)
 {
     this.sync.OnPhotonSerializeView_Status(a_stream, a_info);
 }