This repository was archived by the owner on Feb 20, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
unity-project/Assets/example Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ public class TestDdpAccount : MonoBehaviour {
38
38
private DdpAccount account ;
39
39
40
40
public void Start ( ) {
41
+ Application . runInBackground = true ; // Let the game run when the editor is not focused.
42
+
41
43
ddpConnection = new DdpConnection ( serverUrl ) ;
42
44
ddpConnection . logMessages = logMessages ;
43
45
Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ public class TestDdpClient : MonoBehaviour {
34
34
private DdpConnection ddpConnection ;
35
35
36
36
public void Start ( ) {
37
+ Application . runInBackground = true ; // Let the game run when the editor is not focused.
38
+
37
39
ddpConnection = new DdpConnection ( serverUrl ) ;
38
40
ddpConnection . logMessages = logMessages ;
39
41
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ public class TestLocalDB : MonoBehaviour {
36
36
private JsonObjectCollection friendCollection ;
37
37
38
38
public void Start ( ) {
39
+ Application . runInBackground = true ; // Let the game run when the editor is not focused.
40
+
39
41
ddpConnection = new DdpConnection ( serverUrl ) ;
40
42
ddpConnection . logMessages = logMessages ;
41
43
You can’t perform that action at this time.
0 commit comments