RealmGateAddressHelper.cs 347 B

1234567891011121314151617
  1. using System.Collections.Generic;
  2. namespace ET.Server
  3. {
  4. public static class RealmGateAddressHelper
  5. {
  6. public static StartSceneConfig GetGate(int zone)
  7. {
  8. List<StartSceneConfig> zoneGates = StartSceneConfigCategory.Instance.Gates[zone];
  9. int n = RandomGenerator.RandomNumber(0, zoneGates.Count);
  10. return zoneGates[n];
  11. }
  12. }
  13. }