/// <summary> /// 填充 PhotonEvent 事件。 /// </summary> /// <param name="e">内部事件。</param> /// <returns>PhotonEvent 事件。</returns> public PhotonEventEventArgs Fill(GameFramework.Photon.PhotonEventEventArgs e) { PhotonChannel = e.PhotonChannel; EventData = e.EventData; return(this); }
private void OnPhotonEvent(object sender, GameFramework.Photon.PhotonEventEventArgs e) { m_EventComponent.Fire(this, ReferencePool.Acquire <PhotonEventEventArgs>().Fill(e)); }