Exemple #1
0
 // Use this for initialization
 void Awake()
 {
     validator     = gameObject.GetComponent <SkinnedMeshesValidator>();
     webRtcManager = gameObject.GetComponent <WebRTCManager>();
     tiling        = Resources.Load("TilingShader") as ComputeShader;
     diff          = Resources.Load("DiffShader") as ComputeShader;
 }
Exemple #2
0
 /// <summary>
 /// Start as MeshSender support class
 /// </summary>
 public void StartAsSender(WebRTCManager manager, int range, int packSize)
 {
     webRTCManager = manager;
     areaRange     = range;
     packageSize   = packSize;
     webRTCManager.SetUserConnectedCallBack(UserConnected);
     webRTCManager.SetDataReceivedCallBack(DataReceivedAsSender);
     webRTCManager.SetServerClosedCallBack(ServerClosed);
     if (isTimerReady)
     {
         StartTimer();
     }
 }
Exemple #3
0
 void Awake()
 {
     validator     = gameObject.GetComponent <SkinnedMeshesValidator>();
     webRtcManager = gameObject.GetComponent <WebRTCManager>();
 }
Exemple #4
0
 /// <summary>
 /// Start as MeshReceiver support class
 /// </summary>
 public void StartAsReceiver(WebRTCManager manager)
 {
     webRTCManager = manager;
     webRTCManager.SetDataReceivedCallBack(DataReceivedAsReceiver);
     webRTCManager.SetFirstResponceCallBack(FirstResponce);
 }