|
|
@@ -6,13 +6,16 @@ using UnityEngine;
|
|
|
/**通用配置(2021/12/18新增) */
|
|
|
public class CommonConfig
|
|
|
{
|
|
|
- public static readonly string[] AppNames = {"青凤鸾", "HOUYI"};
|
|
|
- public static readonly int[] AppLanguages = {0, 1};
|
|
|
- public static readonly int[] ServerIndexes = {0, 1};
|
|
|
+ public static readonly string[] AppNames = {"青凤鸾", "HOUYI", "WONDER FITTER"};
|
|
|
//根据产品名决定默认语言
|
|
|
public static int AppLanguage
|
|
|
{
|
|
|
- get => AppLanguages[Array.IndexOf(AppNames, Application.productName)];
|
|
|
+ get
|
|
|
+ {
|
|
|
+ int index = Array.IndexOf(AppNames, Application.productName);
|
|
|
+ if (index == 0) return 0;
|
|
|
+ else return 1;
|
|
|
+ }
|
|
|
}
|
|
|
//禁止语言切换(ios安全上架)
|
|
|
public static bool banLanguageChangeSwitch { get => Application.platform == RuntimePlatform.IPhonePlayer; }
|
|
|
@@ -64,6 +67,11 @@ public class CommonConfig
|
|
|
public static string gamePKServerWsURL;
|
|
|
public static int serverIndex
|
|
|
{
|
|
|
- get => ServerIndexes[Array.IndexOf(AppNames, Application.productName)];
|
|
|
+ get
|
|
|
+ {
|
|
|
+ int index = Array.IndexOf(AppNames, Application.productName);
|
|
|
+ if (index == 0) return 0;
|
|
|
+ else return 1;
|
|
|
+ }
|
|
|
}
|
|
|
}
|