少年修仙传客户端代码仓库
client_linchunjie
2018-10-08 ea549cd1aa0949b8b2810b9e1b998044ecb31e74
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
3个文件已修改
2个文件已删除
90 ■■■■ 已修改文件
Core/GameEngine/SnxxzGame.cs 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Stage/PaintMapLine.cs 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Fight/Stage/PaintMapLine.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Strengthening/GodBeastSlidingList.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Utility/RuntimeLogUtility.cs 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/GameEngine/SnxxzGame.cs
@@ -43,13 +43,51 @@
        }
    }
#if UNITY_EDITOR
    private void OnDrawGizmos()
    {
        if (m_OnDrawGizmosActions != null)
        {
            m_OnDrawGizmosActions();
        }
        Gizmos.color = Color.black;
        if (RuntimeLogUtility.s_ShowMapLine)
        {
            GA_Hero _hero = PlayerDatas.Instance.hero;
            int row = 50;
            int column = 50;
            float size = 0.5f;
            float _startX = (int)_hero.Pos.x - 12.5f;
            float _startZ = (int)_hero.Pos.z - 12.5f;
            if (_hero != null)
            {
                Vector3 _start;
                Vector3 _end;
                for (int i = 0; i < row + 1; ++i)
                {
                    _start = new Vector3(_startX, _hero.Pos.y + 0.1f, _startZ + i * size);
                    _end = new Vector3(_startX + column * .5f, _hero.Pos.y + 0.1f, _startZ + i * size);
                    Gizmos.DrawLine(_start, _end);
                }
                for (int i = 0; i < column + 1; ++i)
                {
                    _start = new Vector3(_startX + i * size, _hero.Pos.y + 0.1f, _startZ);
                    _end = new Vector3(_startX + i * size, _hero.Pos.y + 0.1f, _startZ + row* .5f);
                    Gizmos.DrawLine(_start, _end);
                }
            }
        }
    }
#endif
    protected sealed override void OnDestroy()
    {
Fight/Stage/PaintMapLine.cs
File was deleted
Fight/Stage/PaintMapLine.cs.meta
File was deleted
System/Strengthening/GodBeastSlidingList.cs
@@ -393,6 +393,7 @@
                    GodBeastChildNodes.gameObject.SetActive(false);
                    continue;
                }
                GodBeastChildNodes.gameObject.SetActive(true);
                GodBeastChildNodes.ItemCell.gameObject.SetActive(false);
                GodBeastChildNodes.ChoosenImg.SetActive(false);
                GodBeastChildNodes.TextNumber.gameObject.SetActive(false);
Utility/RuntimeLogUtility.cs
@@ -16,6 +16,7 @@
    public static bool s_UseKeyBoardCastSkill = false;
    public static bool s_LogMoveDistance = false;
    public static bool s_SkillEffectLog = false;
    public static bool s_ShowMapLine = false;
    public static bool s_forceAutoFight
    {
        get
@@ -203,7 +204,8 @@
        RuntimeLogUtility.s_forceAutoFight = EditorGUILayout.Toggle("是否强制开启AI", RuntimeLogUtility.s_forceAutoFight);
        RuntimeLogUtility.s_SkillEffectLog = EditorGUILayout.Toggle("技能效果log输出", RuntimeLogUtility.s_SkillEffectLog);
        RuntimeLogUtility.s_LogMoveDistance = EditorGUILayout.Toggle("位移距离Log输出", RuntimeLogUtility.s_LogMoveDistance);
        RuntimeLogUtility.s_ShowMapLine = EditorGUILayout.Toggle("显示地图网格", RuntimeLogUtility.s_ShowMapLine);
        _navChkPos = EditorGUILayout.Vector3Field("检测点", _navChkPos);
        if (GUILayout.Button("检测"))