Skip to content

Commit 3203fed

Browse files
author
Ramon Melo
committed
CHANGED: Bolt Pro script set platform on Awake
1 parent 51e8b20 commit 3203fed

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

BoltPro/BoltInitPro.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-

1+
22
using System;
33
using UdpKit;
44
using UnityEngine;
@@ -40,6 +40,13 @@ enum State
4040
string serverAddress = "127.0.0.1";
4141
int serverPort = 25000;
4242

43+
private void Awake()
44+
{
45+
#if !BOLT_CLOUD
46+
BoltLauncher.SetUdpPlatform(new DotNetPlatform());
47+
#endif
48+
}
49+
4350
void OnGUI()
4451
{
4552
Rect tex = new Rect(10, 10, 140, 75);
@@ -70,13 +77,6 @@ void OnGUI()
7077
GUILayout.EndArea();
7178
}
7279

73-
public override void BoltStartBegin()
74-
{
75-
#if !BOLT_CLOUD
76-
BoltLauncher.SetUdpPlatform(new DotNetPlatform());
77-
#endif
78-
}
79-
8080
private void State_EnterServerIp()
8181
{
8282
GUILayout.BeginHorizontal();

0 commit comments

Comments
 (0)