We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51e8b20 commit 3203fedCopy full SHA for 3203fed
BoltPro/BoltInitPro.cs
@@ -1,4 +1,4 @@
1
-
+
2
using System;
3
using UdpKit;
4
using UnityEngine;
@@ -40,6 +40,13 @@ enum State
40
string serverAddress = "127.0.0.1";
41
int serverPort = 25000;
42
43
+ private void Awake()
44
+ {
45
+#if !BOLT_CLOUD
46
+ BoltLauncher.SetUdpPlatform(new DotNetPlatform());
47
+#endif
48
+ }
49
50
void OnGUI()
51
{
52
Rect tex = new Rect(10, 10, 140, 75);
@@ -70,13 +77,6 @@ void OnGUI()
70
77
GUILayout.EndArea();
71
78
}
72
79
73
- public override void BoltStartBegin()
74
- {
75
-#if !BOLT_CLOUD
76
- BoltLauncher.SetUdpPlatform(new DotNetPlatform());
-#endif
- }
-
80
private void State_EnterServerIp()
81
82
GUILayout.BeginHorizontal();
0 commit comments