少年修仙传客户端代码仓库
client_Hale
2018-08-13 6315bfc1e5525544a32210f46a7d2d6a447214d2
fixed #382 战斗系统: 测试用默认开启AI逻辑修改为缓存设置
1个文件已修改
21 ■■■■■ 已修改文件
Utility/RuntimeLogUtility.cs 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Utility/RuntimeLogUtility.cs
@@ -7,6 +7,8 @@
public class RuntimeLogUtility : MonoBehaviour
{
    private static string LS_Key_ForceAutoFight = "LS_Key_ForceAutoFight";
    public static bool s_BattleLog = false;
    public static bool s_MoveLog = false;
    public static bool s_ForceOneEnemy = false;
@@ -14,7 +16,24 @@
    public static bool s_UseKeyBoardCastSkill = false;
    public static bool s_LogMoveDistance = false;
    public static bool s_SkillEffectLog = false;
    public static bool s_forceAutoFight = false;
    public static bool s_forceAutoFight
    {
        get
        {
#if UNITY_EDITOR
            return EditorPrefs.GetBool("LS_Key_ForceAutoFight", true);
#else
            return true;
#endif
        }
        set
        {
#if UNITY_EDITOR
            EditorPrefs.SetBool("LS_Key_ForceAutoFight", value);
#endif
        }
    }
    public static string s_LogPath;
    static readonly Dictionary<uint, StringBuilder> s_LogDict = new Dictionary<uint, StringBuilder>();
    static readonly List<string> s_LogList = new List<string>();