private void InputExit(int playerId) { PlayerBuild player = GetPlayerBuild(playerId); player.SetSelected(null); player.SetBuilding(false); ExitPanel(); }
private void OpenBuildPanel(int playerId) { canvas.SetActive(true); PlayerBuild player = GetPlayerBuild(playerId); player.SetBuilding(true); if (player.GetSelected() == null) { if (uiObjects.Count > 0) { player.SetSelected(uiObjects [0]); } else { Debug.Log("UiObjects for Build Panel is Empty"); } } }