// 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; }
/// <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(); } }
void Awake() { validator = gameObject.GetComponent <SkinnedMeshesValidator>(); webRtcManager = gameObject.GetComponent <WebRTCManager>(); }
/// <summary> /// Start as MeshReceiver support class /// </summary> public void StartAsReceiver(WebRTCManager manager) { webRTCManager = manager; webRTCManager.SetDataReceivedCallBack(DataReceivedAsReceiver); webRTCManager.SetFirstResponceCallBack(FirstResponce); }