void Start()
 {
     activePanel = loadingMenuPanel;
     mainMenuPanel.SetActive (false);
     hostGamePanel.SetActive(false);
     joinGamePanel.SetActive (false);
     clientLobbyPanel.SetActive (false);
     hostLobbyPanel.SetActive (false);
     networkManager = GameObject.Find ("GameManager").GetComponent<PunNetworkManager>();
     isServerListReturned = false;
 }
Beispiel #2
0
 void Start()
 {
     activePanel = loadingMenuPanel;
     mainMenuPanel.SetActive(false);
     hostGamePanel.SetActive(false);
     joinGamePanel.SetActive(false);
     clientLobbyPanel.SetActive(false);
     hostLobbyPanel.SetActive(false);
     networkManager       = GameObject.Find("GameManager").GetComponent <PunNetworkManager>();
     isServerListReturned = false;
 }
    private void Start()
    {
        if (instance != null)
        {
            Destroy(gameObject);
            return;
        }

        instance = this;

        DontDestroyOnLoad(gameObject);
    }
 // Use this for initialization
 void Start()
 {
     activeState = new MenuState (this);
     networkManager = gameObject.GetComponent<PunNetworkManager>();
 }
Beispiel #5
0
 // Use this for initialization
 void Start()
 {
     activeState    = new MenuState(this);
     networkManager = gameObject.GetComponent <PunNetworkManager>();
 }