RealmGateAddressHelper.cs 357 B

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