示例#1
0
        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");
        }
示例#2
0
        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;
            }
        }
示例#3
0
        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");
        }
示例#4
0
        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();
            }
        }
示例#5
0
        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>();
        }
示例#6
0
        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);
        }
示例#7
0
        void Start()
        {
            s_Singleton  = this;
            _lobbyHooks  = GetComponent <Prototype.NetworkLobby.LobbyHook>();
            currentPanel = mainMenuPanel;

            GetComponent <Canvas>().enabled = true;

            DontDestroyOnLoad(gameObject);
        }
示例#8
0
        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");
 }
示例#10
0
        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");
        }
示例#11
0
        void Start()
        {
            s_Singleton  = this;
            _lobbyHooks  = GetComponent <LobbyHook>();
            currentPanel = mainMenuPanel;

            backButton.gameObject.SetActive(false);
            GetComponent <Canvas>().enabled = true;

            DontDestroyOnLoad(gameObject);

            SetServerInfo("Offline", "None");
        }
示例#12
0
        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");
        }
示例#14
0
        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");
        }
示例#15
0
        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);
        }
示例#16
0
        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);
            }
        }
示例#18
0
        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");
        }
示例#19
0
        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");
        }
示例#20
0
        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>();
        }
示例#21
0
        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();
        }
示例#25
0
        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 };//
        }
示例#26
0
        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");
        }
示例#27
0
        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();
        }
示例#28
0
        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);
        }
示例#29
0
        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>();
        }
示例#30
0
        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");
        }
示例#31
0
        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;

        }
示例#32
0
        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");
        }