perf: deprecate internalCurrentState tracking
It isn't used at the moment.
This commit is contained in:
parent
86a95a8e88
commit
3acfb446d1
1 changed files with 0 additions and 5 deletions
|
|
@ -21,8 +21,6 @@ public class GBSUGui : MonoBehaviour
|
||||||
string serverip = null;
|
string serverip = null;
|
||||||
int serverport = 0;
|
int serverport = 0;
|
||||||
string currentmap;
|
string currentmap;
|
||||||
string _internalCurrentState;
|
|
||||||
Traverse _internalCurrentStateTraverse;
|
|
||||||
int vsync_switch;
|
int vsync_switch;
|
||||||
bool hosting = false;
|
bool hosting = false;
|
||||||
private void Start()
|
private void Start()
|
||||||
|
|
@ -36,7 +34,6 @@ public class GBSUGui : MonoBehaviour
|
||||||
int.TryParse(CommandLineParser.Instance.GetValueForKey("-port", true), out serverport);
|
int.TryParse(CommandLineParser.Instance.GetValueForKey("-port", true), out serverport);
|
||||||
}
|
}
|
||||||
|
|
||||||
_internalCurrentStateTraverse = Traverse.Create(nameof(GameManagerNew)).Field("internalCurrentState");
|
|
||||||
vsync_switch = QualitySettings.vSyncCount;
|
vsync_switch = QualitySettings.vSyncCount;
|
||||||
}
|
}
|
||||||
private void Update()
|
private void Update()
|
||||||
|
|
@ -48,7 +45,6 @@ public class GBSUGui : MonoBehaviour
|
||||||
}
|
}
|
||||||
|
|
||||||
currentmap = UnityEngine.SceneManagement.SceneManager.GetActiveScene().name;
|
currentmap = UnityEngine.SceneManagement.SceneManager.GetActiveScene().name;
|
||||||
_internalCurrentState = _internalCurrentStateTraverse.GetValue() as string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ToggleMenu()
|
private void ToggleMenu()
|
||||||
|
|
@ -143,7 +139,6 @@ Set CLI arguments: -ip, -port, -servername, -serverpassword
|
||||||
|
|
||||||
Current map: {currentmap}
|
Current map: {currentmap}
|
||||||
Lobby State: {LobbyManager.Instance.LobbyStates.SelfState}
|
Lobby State: {LobbyManager.Instance.LobbyStates.SelfState}
|
||||||
Game State: {_internalCurrentState}
|
|
||||||
Vsync: {QualitySettings.vSyncCount}
|
Vsync: {QualitySettings.vSyncCount}
|
||||||
Target FPS: {Application.targetFrameRate}
|
Target FPS: {Application.targetFrameRate}
|
||||||
{UpdateScoreDisplay()}
|
{UpdateScoreDisplay()}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue