Пример #1
0
    //DW
    //
    void Start()
    {
        MultiplayerManager mm = MultiplayerManager.GetInstance();

        Cursor.lockState = CursorLockMode.None;
        Cursor.visible   = true;

        if (SaveLoad.Load())
        {
            mm.localPlayerName = Game.current.name;
            mm.networkAddress  = Game.current.IPaddress;
        }
        if (mm != null)
        {
            HostNameField.text = mm.localPlayerName;
            JoinNameField.text = mm.localPlayerName;
            IPField.text       = mm.networkAddress;
        }
        //just in case input is locked
        InputWrapper.ReleaseKeyboard();
        InputWrapper.ReleaseMouse();
    }