示例#1
0
 // Use this for initialization
 void Start()
 {
     network        = GetComponent <ManagerLobbyNetwork>();
     userName       = "******" + Random.Range(0, 1001);
     Text_User.text = userName;
     network.SetUserID(userName);
 }
    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";
    }
示例#3
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();
 }
 // Use this for initialization
 void Awake()
 {
     network = GetComponent <ManagerLobbyNetwork>();
 }