public void SendUpdate(List <string> cloudAnchorIdList) { for (i = 0; i < NUM_OF_ANCHOR; i++) { localCloudAnchorIdList[i] = cloudAnchorIdList[i]; UpdateCloudAnchorIdEvent updateCloudAnchorId = UpdateCloudAnchorIdEvent.Create(); updateCloudAnchorId.Index = i; updateCloudAnchorId.CloudAnchorID = cloudAnchorIdList[i]; updateCloudAnchorId.Send(); } }
public override void OnEvent(UpdateCloudAnchorIdEvent evnt) { localCloudAnchorIdList[evnt.Index] = evnt.CloudAnchorID; }