Skip to content

Commit 14b7c64

Browse files
Add DontDestroyOnLoad flag (#83)
* fix: add DontDestroyOnLoad flag * PubNub SDK v6.0.8 release. --------- Co-authored-by: PubNub Release Bot <[email protected]>
1 parent 2edc2aa commit 14b7c64

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

.pubnub.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
2-
version: v6.0.7
2+
version: v6.0.8
33
changelog:
4+
- date: 2023-03-24
5+
version: v6.0.8
6+
changes:
7+
- type: bug
8+
text: "Add DontDestroyOnLoad flag."
49
- date: 2022-11-02
510
version: v6.0.7
611
changes:
@@ -665,7 +670,7 @@ sdks:
665670
distribution-type: package
666671
distribution-repository: git release
667672
package-name: PubNub.unitypackage
668-
location: https://github.com/pubnub/unity/releases/download/v6.0.7/PubNub.unitypackage
673+
location: https://github.com/pubnub/unity/releases/download/v6.0.8/PubNub.unitypackage
669674
requires:
670675
-
671676
name: "UnityEditor"
@@ -832,7 +837,7 @@ sdks:
832837
distribution-type: package
833838
distribution-repository: git release
834839
package-name: PubNub.unitypackage
835-
location: https://github.com/pubnub/unity/releases/download/v6.0.7/PubNub.unitypackage
840+
location: https://github.com/pubnub/unity/releases/download/v6.0.8/PubNub.unitypackage
836841
requires:
837842
-
838843
name: "UnityEditor"

PubNubUnity/Assets/PubNub/Managers/QueueManager.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ public class QueueManager: MonoBehaviour
1414
public PubNubUnity PubNubInstance { get; set;}
1515
private ushort RunningRequests;
1616

17+
void Awake() {
18+
DontDestroyOnLoad(gameObject);
19+
}
20+
1721
void Start(){
1822
this.RunningRequestEnd += delegate(PNOperationType operationType) {
1923
UpdateRunningRequests(true);

PubNubUnity/Assets/PubNub/PubNubUnity/PubNubUnityBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace PubNubAPI
77
public class PubNubUnityBase
88
{
99
protected Counter publishMessageCounter;
10-
private const string build = "6.0.7";
10+
private const string build = "6.0.8";
1111
private string pnsdkVersion = string.Format ("PubNub-CSharp-Unity/{0}", build);
1212

1313
public string Version {

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You will need the publish and subscribe keys to authenticate your app. Get your
1212

1313
## Configure PubNub
1414

15-
1. Download the PubNub Unity package from [this repository](https://github.com/pubnub/unity/releases/download/v6.0.7/PubNub.unitypackage).
15+
1. Download the PubNub Unity package from [this repository](https://github.com/pubnub/unity/releases/download/v6.0.8/PubNub.unitypackage).
1616

1717
2. Import the package to your Unity project by going to Assets > Import Package > Custom Package.
1818

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.7
1+
6.0.8

0 commit comments

Comments
 (0)