public void SetDestination(DESTINATION_LEVEL _dst, int _channel) { roomIdx = -1; roomPswd = string.Empty; if (!Application.isLoadingLevel && Application.loadedLevelName != "SceneSwitch") { Channel channel = ChannelManager.Instance.Get(_channel); if (channel.Mode == 1 && !MyInfoManager.Instance.IsNewbie) { MessageBoxMgr.Instance.AddMessage(StringMgr.Instance.Get("NEWBIE_ONLY")); } else if (channel.UserCount >= channel.MaxUserCount) { MessageBoxMgr.Instance.AddMessage(StringMgr.Instance.Get("CHANNEL_IS_CROWDED")); } else { dst = _dst; this.channel = _channel; lobbyType = GlobalVars.Instance.LobbyType; srcLevel = Application.loadedLevelName; Application.LoadLevel("SceneSwitch"); } } }
public void SetDestination(DESTINATION_LEVEL _dst, int _channel, int _roomIdx, string _roomPswd) { SetDestination(_dst, _channel); roomIdx = _roomIdx; roomPswd = _roomPswd; }