/// <summary> /// /// </summary> /// <param name="pSuccessCall"> Enter Over CallBack</param> /// <param name="pRoomID"></param> /// <param name="isAutoSyncCloud"></param> public void EnterRoom(CloudRoomEvent pSuccessCall, int pRoomID) { Session.SetKeyAndSecret(cloud_key, cloud_sto); EnterRoomSuccessEvent = null; EnterRoomSuccessEvent += pSuccessCall; CloudRoomID = pRoomID; isRoommer = false; NotifyCloudRoomEnterSuccess(); }
/// <summary> /// /// </summary> /// <param name="pSuccessCall"> Create Over CallBack</param> public void createRoom(CloudRoomEvent pSuccessCall) { Session.SetKeyAndSecret(cloud_key, cloud_sto); CreateRoomSuccessEvent = null; CreateRoomSuccessEvent += pSuccessCall; CloudRoomID = ARCloudClient.createRoom().Value; isRoommer = true; NotifyCloudRoomCreateSuccess(); }