void Start() { //Add a random Enemy and it is a random type int[] i = { Random.Range(0, 2), Random.Range(0, botType.Length()) }; bots.Add(i); m_LobbyTopPanel = TopPanelGO.GetComponent <LobbyTopPanel>(); if (nameScenesToLoad.Length > 0) { playScene = nameScenesToLoad[0]; } currentPlayers = new Dictionary <int, int> (); s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; topPanel.gameObject.SetActive(false); InputField[] Inputs = partyAttributes.GetComponentsInChildren <InputField>(); tfLife = Inputs[0]; tfStone = Inputs[1]; GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); }
void Start() { LoadingModal modal = LoadingModal.s_Instance; if (modal != null) { modal.FadeOut(); } _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); switch (s_ReturnPage) { case MenuPage.Home: default: ShowDefaultPanel(); break; case MenuPage.Lobby: ShowLobbyPanel(); break; } }
void Start() { discovery = GetComponent <LobbyNetworkDiscovery>(); discovery.Initialize(); discovery.StartAsClient(); currentPlayers = new Dictionary <int, Teams.Team>(); lobbyPlayers = new Dictionary <int, LobbyPlayer>(); s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; //backButton.gameObject.SetActive(false); backDelegate = ExitGame; Text label = backButton.transform.GetChild(0).GetComponent <Text>(); label.text = "QUIT"; GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); }
void Start() { currentPlayers = new Dictionary <int, int> (); s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); //GetComponent<Canvas>().enabled = true; DontDestroyOnLoad(gameObject); //DontDestroyOnLoad(loadingScreen); SetServerInfo("Offline", "None"); if (!mainMenuUI) { mainMenuUI = MainMenu.s_Singleton.gameObject; } if (loadingScreen.activeInHierarchy) { DisableLoadingScreen(); } }
void Start() { if (s_Singleton == null) { s_Singleton = this; } else { if (s_Singleton != this) { Destroy(gameObject); } } _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); Audio = GetComponent <GameAudio>(); }
void Start() { // StartMatchMaker (); SaveSystem.Load(); //Reinicializa o matchmaker // StopMatchMaker(); StartMatchMaker(); s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); if (SaveSystem.player.name == "") { currentPanel = loginPanel; } else { currentPanel = gamesPanel; } GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); ChangeTo(currentPanel); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = startMenu; GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SceneManager.activeSceneChanged += HideLobbyOnChangeScene; }
void Start() { currentPlayers = new Dictionary <int, int>(); s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent <Canvas>().enabled = true; ipAddressValueLabel.text = Network.player.ipAddress; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent <LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); Utility.useRandomSourceID = MultiClient; SetServerInfo("Offline", "None"); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("HORS-LIGNE", "Aucun"); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); Application.targetFrameRate = 60; SetServerInfo("Offline", "None"); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); currentPlayers = new Dictionary <int, int>(); escapePanel.ToggleVisibility(false); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); // set to true so we can return to the main menu options when lobby manager fixed GetComponent <Canvas>().enabled = false; //CHANGED DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); }
void Start() { //SelectNetworkType (); netdisc = GetComponent <Discovery> (); netdisc.showGUI = false; roomList = roomListObj.GetComponent <LobbyRoomList> (); /* 画像を一番前に持ってくる関数 */ // titleback.transform.SetAsLastSibling(); countdownPanel.transform.SetAsLastSibling(); s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backDelegate = BackToPlayerNumber; GetComponent <Canvas>().enabled = true; NetworkStart(); DontDestroyManager.DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); if (KanjiTime.TitleManager.mode == KanjiTime.TitleManager.Mode.Single || KanjiTime.TitleManager.mode == KanjiTime.TitleManager.Mode.Tutorial) //ソロプレイモードまたはチュートリアルモード { hidePanel.SetActive(true); SetRoomName(); selectStagePanel.SetActive(true); selectPlayPanel.GetComponent <PlayerNumber>().MultiButton(); selectStagePanel.GetComponent <StageSelect>().RoomNameEnter(); RoomNameEnter(); Invoke("DisactiveHidePanel", 0.5f); } else if (KanjiTime.TitleManager.mode == KanjiTime.TitleManager.Mode.Host) //ホストモード { hidePanel.SetActive(false); SetRoomName(); selectStagePanel.SetActive(true); selectPlayPanel.GetComponent <PlayerNumber>().MultiButton(); } else if (KanjiTime.TitleManager.mode == KanjiTime.TitleManager.Mode.Client) //クライアントモード { hidePanel.SetActive(false); mainMenuPanel.GetComponent <LobbyMainMenu>().OnClickFindRoom(); OnStartClient(); roomList.RemoveRoomButton(); backButton.gameObject.SetActive(false); } }
void Start() { Screen.orientation = ScreenOrientation.Landscape; s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; topPanel.gameObject.SetActive(true); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); backDelegate = BackToMenu; SetServerInfo("Offline", "None"); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); _logonWindow = GameObject.Find("UserDetailsInfo").GetComponent <LogonManager>(); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); sButtonClickSound = sButtonClickSound.Remove(0, 7); }
public virtual void Start() { s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); backButton.onClick.AddListener(() => backDelegate()); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); }
void Start() { if (!File.Exists("userinfo.txt")) { StreamWriter sw = new StreamWriter("userinfo.txt"); sw.Close(); } if (!File.Exists("topscores.txt")) { StreamWriter sw = new StreamWriter("topscores.txt"); for (int i = 0; i < 10; i++) { sw.WriteLine(0); } sw.Close(); } if (!File.Exists("toptimes.txt")) { StreamWriter sw = new StreamWriter("toptimes.txt"); for (int i = 0; i < 10; i++) { sw.WriteLine(100000); } sw.Close(); } s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); HandleServerQuestion(); HideAll(); currentPanel = mainMenuPanel; normalChecked.enabled = true; fastChecked.enabled = false; heavyChecked.enabled = false; selectVehicleButton.enabled = true; VehicleSelectPanel.gameObject.SetActive(false); backButton.gameObject.SetActive(false); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); MenuButton.gameObject.SetActive(true); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); networkAddress = CommonFunctions.LocalIPAddress(); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); //randomspawnpoint = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };// }
void Start() { _gCreate_Room.SetActive(false); _vInput_Name_Pos = GameObject.Find("123").transform.position; s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); InitializeGameManagerProperties(); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); gamePlayerPrefab = SelectionScreen.playerPrefab; OnLobbyServerSceneLoadedForPlayer(gamePlayerPrefab, gamePlayerPrefab); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; settingsButton.gameObject.SetActive(false); backDelegate = QuitClbk; GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); statuses = new List <PlayerStatus>(); }
void Start() { // gamePlayerPrefab = gunner; playerPrefab = gamePlayerPrefab; // If something goes wrong: I added this (Sasha) s_Singleton = this; _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent <Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent<Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; //backButton.gameObject.SetActive(false); GetComponent<Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); backDelegate = BackToMainMenuScene; if (FindObjectOfType<QuickplayLobby>() != null) isInQuickPlay = true; }
void Start() { s_Singleton = this; _lobbyHooks = GetComponent<Prototype.NetworkLobby.LobbyHook>(); currentPanel = mainMenuPanel; backButton.gameObject.SetActive(false); GetComponent<Canvas>().enabled = true; DontDestroyOnLoad(gameObject); SetServerInfo("Offline", "None"); }