using System; using UnityEngine; public class Config { public enum Scene { // Start, // Main, Battle, // Show, } //server port for china is empty string, for international is intl public const string USER_PORT_CHINA = ""; public const string USER_PORT_INTERNATIONAL = "intl"; public static string USER_PORT { get{ if (Language.GetCurrentLanguage () == SystemLanguage.Chinese) return USER_PORT_CHINA; return USER_PORT_INTERNATIONAL; } } // public static bool USE_LOCAL_SERVER = true; public static bool USE_LOCAL_SERVER = false; // public static string LOCAL_SERVER_ADDRESS = "192.168.1.52"; public static string LOCAL_SERVER_ADDRESS = "127.0.0.1"; public static string SERVER_ADDRESS = "121.199.20.79"; // public static string SERVER_ADDRESS = "127.0.0.1"; // public static string SERVER_ADDRESS = "192.168.1.102"; // public static string SERVER_ADDRESS = "139.219.184.31"; public static string URL_ADDRESS = "http://121.199.20.79/battlearray/"; // public static string SERVER_ADDRESS = "47.90.201.47"; // public static string URL_ADDRESS = "http://47.90.201.47/"; public static int SERVER_PORT = 9933; public static string ZONE = "BattleArray_1_2_6"; public static string LOBBY_ROOM_NAME = "Lobby"; public static string CLAN_ROOM_PREFIX = "Clan"; public static string VERSION = "1.2.7"; public static string VERSION_LABEL = "1_2_7"; public static string VERSION_CODE = "10207"; public static int MAX_USER_NAME_LENGTH = 20; public static int MAX_ARRAY_NAME_LENGTH = 20; public static int MAX_ARRAY_DESC_LENGTH = 140; public static int MAX_CHAT_LENGTH = 100; public static string MAP_SAVE_FOLDER = Application.dataPath+"/Resources/Maps/"; public static string MAP_LOAD_FOLDER = "Maps/"; public static string SOUND_PREFAB_FOLDER = "Prefabs/Sounds/"; public static string MINI_CRAFT_PREFAB = "Prefabs/UI/MiniCraft"; public static string MOVE_MARK_PREFAB = "Prefabs/Effects/MoveMark"; public static string MAP_OBJECT_FOLDER = "Prefabs/MapObject/"; public static string START_FLAG_PREFAB = "Prefabs/Flags/StartFlag"; public static string DOOR_PREFAB = "Prefabs/Buildings/Door"; public static string BLOCK_PREFAB = "Prefabs/Buildings/Block"; public static string CRYSTAL_BASE_PREFAB = "Prefabs/Buildings/Crystal"; public static string FLAG_BASE_PREFAB = "Prefabs/Buildings/FlagBase"; public static string FLAG_PREFAB = "Prefabs/Item/FlagItem"; public static string BIGGER_ITEM_PREFAB = "Prefabs/Item/BiggerItem"; public static string STATION_PREFAB = "Prefabs/Buildings/Station"; public static string ITEM_POS_PREFAB = "Prefabs/Buildings/ItemPos"; public static string START_POS_PREFAB = "Prefabs/Buildings/StartPos"; public static string CAPSULE_PREFAB = "Prefabs/Utils/Capsule"; public static string CRAFT_PREFAB_FOLDER = "Prefabs/Crafts/"; public static string CRAFT_NEW_PREFAB_FOLDER = "Prefabs/CraftsNew/"; public static string BULLET_PREFAB_FOLDER = "Prefabs/Bullets/"; public static string EFFECT_PREFAB_FOLDER = "Prefabs/Effects/"; public static string HEAD_BAR_PREFAB = "Prefabs/UI/Battle/HeadBar"; public static string TEAM_SIDE_BAR_PREFAB = "Prefabs/UI/TeamSideBarContainer"; public static string SHADOW_MATERIAL = "Materials/Shadow"; }