예제 #1
0
    private void OnReadyToConnect()
    {
        PlayerPrefs.SetString(NAME_PREFS, PlayerName);
        PlayerPrefs.Save();

        _connectionHandle.IsHost     = _isHost;
        _connectionHandle.PlayerName = PlayerName;

        _connectionHandle.AddTask(onClose, TaskHandle.PRIORITY_UI_EFFECTS);
        _connectionHandle.ReadyToConnect();
    }