zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Hotfix/Demo/RealmGateAddressHelper.cs

18 lines
337 B
C#
Executable File

using System.Collections.Generic;
namespace ET
{
public static class RealmGateAddressHelper
{
public static StartSceneConfig GetGate(int zone)
{
List<StartSceneConfig> zoneGates = StartSceneConfigCategory.Instance.Gates[zone];
int n = RandomHelper.RandomNumber(0, zoneGates.Count);
return zoneGates[n];
}
}
}