mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-04-25 07:57:08 -05:00
Set MLAPI Relay Use to be off by default
This commit is contained in:
parent
896b57252b
commit
dd537fdaf5
|
|
@ -252,7 +252,7 @@ MonoBehaviour:
|
|||
ServerWebsocketListenPort: 8887
|
||||
SupportWebsocket: 0
|
||||
Channels: []
|
||||
UseMLAPIRelay: 1
|
||||
UseMLAPIRelay: 0
|
||||
MLAPIRelayAddress: 65.30.15.214
|
||||
MLAPIRelayPort: 8888
|
||||
MessageSendMode: 0
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ public class GameNetPortal : MonoBehaviour {
|
|||
private void SetOptions() {
|
||||
// Set the Use MLAPI Relay Option if it doesn't yet exist
|
||||
if (!PlayerPrefs.HasKey("UseMLAPIRelay")) {
|
||||
PlayerPrefs.SetInt("UseMLAPIRelay", 1);
|
||||
PlayerPrefs.SetInt("UseMLAPIRelay", 0);
|
||||
} else {
|
||||
if (PlayerPrefs.GetInt("UseMLAPIRelay") == 0) {
|
||||
GameObject.FindGameObjectWithTag("NetworkManager").GetComponent<UNetTransport>().UseMLAPIRelay = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user