private void Start()
    {
        network = GetComponent <ManagerLobbyNetwork>();
        sys     = GetComponent <ManagerLobbySys>();

        Fx_last3 = Fx_Home;
        if (PlayerPrefs.HasKey("PlayedType"))
        {
            QuickType = PlayerPrefs.GetInt("PlayedType");
            if (QuickType == 1)
            {
                PlayedType.text = "Random Match";
            }
            else if (QuickType == 2)
            {
                PlayedType.text = "Custom Match";
            }
            else if (QuickType == 3)
            {
                PlayedType.text = "Tutorial";
            }
        }

        Screen.SetResolution(1920, 1080, true);
        Resolution.text = "1920*1080";
    }
Esempio n. 2
0
 void Start()
 {
     UserName = "******" + Random.Range(1, 1000);
     PhotonNetwork.playerName = UserName; //이름 지정 다음에 지워야함
     instance = this;                     //싱글톤
     ConnectNetwork();                    //인터넷연결
     MatchManager = null;
     Canvas       = gameObject.GetComponent <ManagerLobbyCanvas>();
     Sys          = gameObject.GetComponent <ManagerLobbySys>();
     ConnectNetwork();
 }