using System.Collections; using System.Collections.Generic; using UnityEngine; /**通用配置(2021/12/18新增) */ public class CommonConfig { /**环数精度小数位 */ public static readonly int ringsPrecision = 1; /**箭的速度精度小数位 */ public static readonly int arrowSpeedPrecision = 1; //实体模具箭重,单位克 public static float arrowWeight = 75; public static bool isReleaseVersion = true; public enum ServerType {LocalTest, Produce}; private static ServerType serverType = ServerType.Produce; //业务服务端访问地址 public static string businessServerURI { get { if (serverType == ServerType.LocalTest) { return "http://192.168.137.1:11332/SmartBowBusinessServer"; } if (serverType == ServerType.Produce) { return "http://49.234.219.63:11332/SmartBowBusinessServer"; } return ""; } } //业务服务端WS访问地址 public static string businessServerWsURI { get { if (serverType == ServerType.LocalTest) { return "ws://192.168.137.1:11333/SmartBowBusinessServerSK"; } if (serverType == ServerType.Produce) { return "ws://49.234.219.63:11333/SmartBowBusinessServerSK"; } return ""; } } //游戏对战服务器 public static string gamePKServerWsURI { get { if (serverType == ServerType.LocalTest) { return "ws://192.168.137.1:11811/SmartBowGameServer"; } if (serverType == ServerType.Produce) { return "ws://49.234.219.63:11811/SmartBowGameServer"; } return ""; } } }