示例#1
0
 void Start()
 {
     lobbyHooks   = GetComponent <LobbyHook>();
     currentPanel = mainMenuPanel;
     backButton.gameObject.SetActive(false);
     SetServerInfo("Offline", "None");
 }
示例#2
0
 // Use this for initialization
 void Start()
 {
     Instance    = this;
     _lobbyHooks = GetComponent <LobbyHook>();
     DontDestroyOnLoad(gameObject);
     SwitchPanel(MainMenuPanel);
 }
示例#3
0
 // Use this for initialization
 void Start()
 {
     _lobbyHook = GetComponent <LobbyHook>();
     Instance   = this;
     DontDestroyOnLoad(gameObject);
     HostGame();
 }
示例#4
0
    void Start()
    {
        Screen.orientation = ScreenOrientation.Portrait;
        s_Singleton        = this;
        _lobbyHooks        = GetComponent <LobbyHook>();
        currentPanel       = mainMenuPanel;

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

        DontDestroyOnLoad(gameObject);

        SetServerInfo("Offline", "None");
        background.SetActive(true);

        int quoteNo = UnityEngine.Random.Range(0, feedbackList.Count - 1);

        Feedback.text = "\"" + feedbackList[quoteNo] + "\"";



#if UNITY_ANDROID
        settingsButton.gameObject.SetActive(false);
        hostButton.gameObject.SetActive(false);
        joinButton.GetComponent <RectTransform>().localPosition -= new Vector3(0, 60, 0);
#else
        //joinButton.gameObject.SetActive(false);
#endif
    }
示例#5
0
 void Start()
 {
     instance = this;
     DontDestroyOnLoad(gameObject);
     lobbyHook    = GetComponent <LobbyHook>();
     backDelegate = Back_MainScene;
 }
示例#6
0
    void Start()
    {
        instance  = this;
        lobbyHook = GetComponent <LobbyHook>();

        //DontDestroyOnLoad(gameObject); removed bc makes too much
    }
 private void Start()
 {
     instance = this;
     backButton.gameObject.SetActive(false);
     ipAdress.gameObject.SetActive(false);
     roomSettingButton.gameObject.SetActive(false);
     GetComponent <Canvas>().enabled = true;
     DontDestroyOnLoad(gameObject);
     lobbyHooks = GetComponent <LobbyHook> ();
 }
示例#8
0
 // Use this for initialization
 void Start()
 {
     //LobbyDetails = Resources.FindObjectsOfTypeAll<LobbyDetails>()[0];
     //LobbyDetails = GameObject.Find("LobbyDetails").GetComponent<LobbyDetails>();
     _lobbyHook = GetComponent<LobbyHook>();
     Instance = this;
     CurrentPanel = MainMenuPanel;
     DontDestroyOnLoad(gameObject);
     //SetServerInfo("Offline", "None");
 }
示例#9
0
    void Start()
    {
        s_Singleton  = this;
        lobbyHooks   = GetComponent <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<LobbyHook>();
        currentPanel = mainMenuPanel;

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

        DontDestroyOnLoad(gameObject);

        SetServerInfo("Offline", "None");
    }
示例#11
0
    void Start()
    {
        //This will run when the game starts, so put this here to prevent devices to go to sleep mode
        Screen.sleepTimeout = SleepTimeout.NeverSleep;
        connectionConfig.NetworkDropThreshold = 90;

        networkEventReceiver = networkEventReceiverObject.GetComponent <INetworkEventReceiver>();

        s_Singleton = this;
        _lobbyHooks = GetComponent <LobbyHook>();

        GetComponent <Canvas>().enabled = true;

        DontDestroyOnLoad(gameObject);
    }
示例#12
0
 void Start()
 {
     s_Singleton = this;
     _lobbyHooks = GetComponent <Prototype.NetworkLobby.LobbyHook>();
     DontDestroyOnLoad(gameObject);
 }
示例#13
0
 private void Awake()
 {
     lobbyHook = LobbyHook.Hook;
     lobbyHook.RegisterPlayerAddedHandler(Refresh);
     lobbyHook.RegisterPlayerRemovedHandler(Refresh);
 }
示例#14
0
    private void Start()
    {
        GameManage.Register(GameEventType.Start_LanGame, LanGame);//注册加入局域网事件

        lobbyHook = GetComponent <LobbyHook>();
    }
示例#15
0
 private void Awake()
 {
     currentPage = 0;
     lobbyHook   = LobbyHook.Hook;
     lobbyHook.RegisterMatchListHandler(Refresh);
 }
 void Start()
 {
     lobbyHooks   = GetComponent <LobbyHook>();
     currentPanel = mainMenuPanel;
 }
示例#17
0
 private void Awake()
 {
     lobbyHook = LobbyHook.Hook;
 }