| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- 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 enum ServerType {LocalTest, Produce};
- private static ServerType serverType = ServerType.Produce;
- //业务服务端访问地址
- public static string businessServerURI {
- get {
- if (serverType == ServerType.LocalTest) {
- return "http://192.168.101.14: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.101.14: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.101.14:11811/SmartBowGameServer";
- }
- if (serverType == ServerType.Produce) {
- return "ws://49.234.219.63:11811/SmartBowGameServer";
- }
- return "";
- }
- }
- }
|