Beispiel #1
0
    static int PlayerAnimAction(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 3 && TypeChecker.CheckTypes(L, typeof(Logic.Action.Controller.ActionController), typeof(Logic.Character.CharacterEntity), typeof(int)))
            {
                Logic.Action.Controller.ActionController obj  = (Logic.Action.Controller.ActionController)ToLua.ToObject(L, 1);
                Logic.Character.CharacterEntity          arg0 = (Logic.Character.CharacterEntity)ToLua.ToObject(L, 2);
                int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
                obj.PlayerAnimAction(arg0, arg1);
                return(0);
            }
            else if (count == 4 && TypeChecker.CheckTypes(L, typeof(Logic.Action.Controller.ActionController), typeof(Logic.Character.CharacterEntity), typeof(int), typeof(float)))
            {
                Logic.Action.Controller.ActionController obj  = (Logic.Action.Controller.ActionController)ToLua.ToObject(L, 1);
                Logic.Character.CharacterEntity          arg0 = (Logic.Character.CharacterEntity)ToLua.ToObject(L, 2);
                int   arg1 = (int)LuaDLL.lua_tonumber(L, 3);
                float arg2 = (float)LuaDLL.lua_tonumber(L, 4);
                obj.PlayerAnimAction(arg0, arg1, arg2);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: Logic.Action.Controller.ActionController.PlayerAnimAction"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #2
0
    static int Despawn(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 3 && TypeChecker.CheckTypes(L, typeof(Logic.Pool.Controller.PoolController), typeof(string), typeof(Logic.Character.CharacterEntity)))
            {
                Logic.Pool.Controller.PoolController obj = (Logic.Pool.Controller.PoolController)ToLua.ToObject(L, 1);
                string arg0 = ToLua.ToString(L, 2);
                Logic.Character.CharacterEntity arg1 = (Logic.Character.CharacterEntity)ToLua.ToObject(L, 3);
                obj.Despawn(arg0, arg1);
                return(0);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, typeof(Logic.Pool.Controller.PoolController), typeof(string), typeof(UnityEngine.Transform)))
            {
                Logic.Pool.Controller.PoolController obj = (Logic.Pool.Controller.PoolController)ToLua.ToObject(L, 1);
                string arg0 = ToLua.ToString(L, 2);
                UnityEngine.Transform arg1 = (UnityEngine.Transform)ToLua.ToObject(L, 3);
                obj.Despawn(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: Logic.Pool.Controller.PoolController.Despawn"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #3
0
 static int SetShader(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Logic.Character.CharacterEntity arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 1, typeof(Logic.Character.CharacterEntity));
         Logic.Character.CharacterEntity o    = Logic.Shaders.ShadersUtil.SetShader(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #4
0
 static int PlayBuffEffect(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         Logic.Fight.Controller.MechanicsController obj  = (Logic.Fight.Controller.MechanicsController)ToLua.CheckObject(L, 1, typeof(Logic.Fight.Controller.MechanicsController));
         Logic.Character.CharacterEntity            arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.CharacterEntity));
         Logic.Skill.Model.MechanicsData            arg1 = (Logic.Skill.Model.MechanicsData)ToLua.CheckObject(L, 3, typeof(Logic.Skill.Model.MechanicsData));
         obj.PlayBuffEffect(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #5
0
 static int SetRimPow(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Logic.Character.CharacterEntity arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 1, typeof(Logic.Character.CharacterEntity));
         float arg1 = (float)LuaDLL.luaL_checknumber(L, 2);
         Logic.Character.CharacterEntity o = Logic.Shaders.ShadersUtil.SetRimPow(arg0, arg1);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int CreateAeon(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Logic.Character.Controller.PlayerController obj  = (Logic.Character.Controller.PlayerController)ToLua.CheckObject(L, 1, typeof(Logic.Character.Controller.PlayerController));
         Logic.Character.CharacterEntity             arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.CharacterEntity));
         Logic.Character.HeroEntity o = obj.CreateAeon(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int Reborn(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         Logic.Character.Controller.EnemyController obj  = (Logic.Character.Controller.EnemyController)ToLua.CheckObject(L, 1, typeof(Logic.Character.Controller.EnemyController));
         Logic.Character.CharacterEntity            arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.CharacterEntity));
         float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
         obj.Reborn(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #8
0
 static int MoveTarget(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         Logic.Action.Controller.ActionController obj  = (Logic.Action.Controller.ActionController)ToLua.CheckObject(L, 1, typeof(Logic.Action.Controller.ActionController));
         Logic.Character.CharacterEntity          arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.CharacterEntity));
         UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 3);
         float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
         obj.MoveTarget(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #9
0
 static int SetAnimBoolean(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         Logic.Action.Controller.ActionController obj  = (Logic.Action.Controller.ActionController)ToLua.CheckObject(L, 1, typeof(Logic.Action.Controller.ActionController));
         Logic.Character.CharacterEntity          arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.CharacterEntity));
         string arg1 = ToLua.CheckString(L, 3);
         bool   arg2 = LuaDLL.luaL_checkboolean(L, 4);
         obj.SetAnimBoolean(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int get_target(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Character.Model.BuffInfo  obj = (Logic.Character.Model.BuffInfo)o;
            Logic.Character.CharacterEntity ret = obj.target;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index target on a nil value" : e.Message));
        }
    }
Beispiel #11
0
 static int SetShaderKeyword(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         Logic.Character.CharacterEntity arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 1, typeof(Logic.Character.CharacterEntity));
         string arg1 = ToLua.CheckString(L, 2);
         string arg2 = ToLua.CheckString(L, 3);
         Logic.Character.CharacterEntity o = Logic.Shaders.ShadersUtil.SetShaderKeyword(arg0, arg1, arg2);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #12
0
 static int SetColor(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         Logic.Character.CharacterEntity arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 1, typeof(Logic.Character.CharacterEntity));
         int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
         UnityEngine.Color arg2            = ToLua.ToColor(L, 3);
         Logic.Character.CharacterEntity o = Logic.Shaders.ShadersUtil.SetColor(arg0, arg1, arg2);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #13
0
 static int SetTreatValue(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         Logic.Fight.Controller.MechanicsController obj  = (Logic.Fight.Controller.MechanicsController)ToLua.CheckObject(L, 1, typeof(Logic.Fight.Controller.MechanicsController));
         Logic.Character.CharacterEntity            arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.CharacterEntity));
         float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
         bool  arg2 = LuaDLL.luaL_checkboolean(L, 4);
         obj.SetTreatValue(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #14
0
    static int get_CharacterEntity(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Model.View.ModelBehaviour obj = (Logic.Model.View.ModelBehaviour)o;
            Logic.Character.CharacterEntity ret = obj.CharacterEntity;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index CharacterEntity on a nil value" : e.Message));
        }
    }
Beispiel #15
0
 static int Transform(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         Logic.Fight.Controller.MechanicsController obj  = (Logic.Fight.Controller.MechanicsController)ToLua.CheckObject(L, 1, typeof(Logic.Fight.Controller.MechanicsController));
         Logic.Character.CharacterEntity            arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.CharacterEntity));
         int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
         int arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
         obj.Transform(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int set_target(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Logic.Character.Model.BuffInfo  obj  = (Logic.Character.Model.BuffInfo)o;
            Logic.Character.CharacterEntity arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.CharacterEntity));
            obj.target = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index target on a nil value" : e.Message));
        }
    }
Beispiel #17
0
        public static Logic.Character.CharacterEntity SetShader(Logic.Character.CharacterEntity characterEntity)
        {
#if UNITY_EDITOR
            Renderer[] renderers = characterEntity.gameObject.GetComponentsInChildren <Renderer>();
            Renderer   renderer  = null;
            for (int i = 0, count = renderers.Length; i < count; i++)
            {
                renderer = renderers[i];
                Material[] materials = renderer.materials;
                for (int j = 0, jCount = materials.Length; j < jCount; j++)
                {
                    materials[j].shader = UnityEngine.Shader.Find(Custom_Rim_Lighting_Surf);
                }
            }
            return(characterEntity);
#else
            return(characterEntity);
#endif
        }
Beispiel #18
0
        public static Logic.Character.CharacterEntity SetColor(Logic.Character.CharacterEntity characterEntity, int colorId, Color color)
        {
            Renderer[] renderers = characterEntity.gameObject.GetComponentsInChildren <Renderer>();
            Renderer   renderer  = null;

            for (int i = 0, count = renderers.Length; i < count; i++)
            {
                renderer = renderers[i];
#if UNITY_EDITOR
                Material[] materials = renderer.materials;
#else
                Material[] materials = renderer.sharedMaterials;
#endif
                for (int j = 0, jCount = materials.Length; j < jCount; j++)
                {
                    materials[j].SetColor(colorId, color);
                }
            }
            return(characterEntity);
        }
Beispiel #19
0
        public static Logic.Character.CharacterEntity SetShaderKeyword(Logic.Character.CharacterEntity characterEntity, string enableKeyword, string disableKeyword)
        {
            Renderer[] renderers = characterEntity.gameObject.GetComponentsInChildren <Renderer>();
            Renderer   renderer  = null;

            for (int i = 0, count = renderers.Length; i < count; i++)
            {
                renderer = renderers[i];
#if UNITY_EDITOR
                Material[] materials = renderer.materials;
#else
                Material[] materials = renderer.sharedMaterials;
#endif
                for (int j = 0, jCount = materials.Length; j < jCount; j++)
                {
                    materials[j].EnableKeyword(enableKeyword);
                    materials[j].DisableKeyword(disableKeyword);
                }
            }
            return(characterEntity);
        }
Beispiel #20
0
 static int SetDamageValue(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 8);
         Logic.Fight.Controller.MechanicsController obj  = (Logic.Fight.Controller.MechanicsController)ToLua.CheckObject(L, 1, typeof(Logic.Fight.Controller.MechanicsController));
         Logic.Character.CharacterEntity            arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.CharacterEntity));
         Logic.Character.CharacterEntity            arg1 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 3, typeof(Logic.Character.CharacterEntity));
         Logic.Skill.Model.SkillInfo arg2 = (Logic.Skill.Model.SkillInfo)ToLua.CheckObject(L, 4, typeof(Logic.Skill.Model.SkillInfo));
         uint  arg3 = (uint)LuaDLL.luaL_checknumber(L, 5);
         bool  arg4 = LuaDLL.luaL_checkboolean(L, 6);
         float arg5 = (float)LuaDLL.luaL_checknumber(L, 7);
         int   arg6 = (int)LuaDLL.luaL_checknumber(L, 8);
         obj.SetDamageValue(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int _CreateLogic_Character_Model_BuffInfo(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 7)
            {
                Logic.Character.CharacterEntity arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 1, typeof(Logic.Character.CharacterEntity));
                Logic.Skill.Model.MechanicsData arg1 = (Logic.Skill.Model.MechanicsData)ToLua.CheckObject(L, 2, typeof(Logic.Skill.Model.MechanicsData));
                Logic.Enums.BuffType            arg2 = (Logic.Enums.BuffType)ToLua.CheckObject(L, 3, typeof(Logic.Enums.BuffType));
                float arg3 = (float)LuaDLL.luaL_checknumber(L, 4);
                float arg4 = (float)LuaDLL.luaL_checknumber(L, 5);
                int   arg5 = (int)LuaDLL.luaL_checknumber(L, 6);
                float arg6 = (float)LuaDLL.luaL_checknumber(L, 7);
                Logic.Character.Model.BuffInfo obj = new Logic.Character.Model.BuffInfo(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 11 && TypeChecker.CheckTypes(L, typeof(Logic.Character.CharacterEntity), typeof(Logic.Character.CharacterEntity), typeof(Logic.Skill.Model.SkillInfo), typeof(Logic.Skill.Model.MechanicsData), typeof(Logic.Enums.BuffType), typeof(Logic.Enums.SkillLevelBuffAddType), typeof(Logic.Enums.BuffAddType), typeof(float), typeof(float), typeof(uint), typeof(int)))
            {
                Logic.Character.CharacterEntity   arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 1, typeof(Logic.Character.CharacterEntity));
                Logic.Character.CharacterEntity   arg1 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.CharacterEntity));
                Logic.Skill.Model.SkillInfo       arg2 = (Logic.Skill.Model.SkillInfo)ToLua.CheckObject(L, 3, typeof(Logic.Skill.Model.SkillInfo));
                Logic.Skill.Model.MechanicsData   arg3 = (Logic.Skill.Model.MechanicsData)ToLua.CheckObject(L, 4, typeof(Logic.Skill.Model.MechanicsData));
                Logic.Enums.BuffType              arg4 = (Logic.Enums.BuffType)ToLua.CheckObject(L, 5, typeof(Logic.Enums.BuffType));
                Logic.Enums.SkillLevelBuffAddType arg5 = (Logic.Enums.SkillLevelBuffAddType)ToLua.CheckObject(L, 6, typeof(Logic.Enums.SkillLevelBuffAddType));
                Logic.Enums.BuffAddType           arg6 = (Logic.Enums.BuffAddType)ToLua.CheckObject(L, 7, typeof(Logic.Enums.BuffAddType));
                float arg7  = (float)LuaDLL.luaL_checknumber(L, 8);
                float arg8  = (float)LuaDLL.luaL_checknumber(L, 9);
                uint  arg9  = (uint)LuaDLL.luaL_checknumber(L, 10);
                int   arg10 = (int)LuaDLL.luaL_checknumber(L, 11);
                Logic.Character.Model.BuffInfo obj = new Logic.Character.Model.BuffInfo(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 12 && TypeChecker.CheckTypes(L, typeof(Logic.Character.CharacterEntity), typeof(Logic.Character.CharacterEntity), typeof(Logic.Skill.Model.SkillInfo), typeof(Logic.Skill.Model.MechanicsData), typeof(Logic.Enums.BuffType), typeof(Logic.Enums.SkillLevelBuffAddType), typeof(Logic.Enums.BuffAddType), typeof(int), typeof(uint), typeof(float), typeof(uint), typeof(int)))
            {
                Logic.Character.CharacterEntity   arg0 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 1, typeof(Logic.Character.CharacterEntity));
                Logic.Character.CharacterEntity   arg1 = (Logic.Character.CharacterEntity)ToLua.CheckUnityObject(L, 2, typeof(Logic.Character.CharacterEntity));
                Logic.Skill.Model.SkillInfo       arg2 = (Logic.Skill.Model.SkillInfo)ToLua.CheckObject(L, 3, typeof(Logic.Skill.Model.SkillInfo));
                Logic.Skill.Model.MechanicsData   arg3 = (Logic.Skill.Model.MechanicsData)ToLua.CheckObject(L, 4, typeof(Logic.Skill.Model.MechanicsData));
                Logic.Enums.BuffType              arg4 = (Logic.Enums.BuffType)ToLua.CheckObject(L, 5, typeof(Logic.Enums.BuffType));
                Logic.Enums.SkillLevelBuffAddType arg5 = (Logic.Enums.SkillLevelBuffAddType)ToLua.CheckObject(L, 6, typeof(Logic.Enums.SkillLevelBuffAddType));
                Logic.Enums.BuffAddType           arg6 = (Logic.Enums.BuffAddType)ToLua.CheckObject(L, 7, typeof(Logic.Enums.BuffAddType));
                int   arg7  = (int)LuaDLL.luaL_checknumber(L, 8);
                uint  arg8  = (uint)LuaDLL.luaL_checknumber(L, 9);
                float arg9  = (float)LuaDLL.luaL_checknumber(L, 10);
                uint  arg10 = (uint)LuaDLL.luaL_checknumber(L, 11);
                int   arg11 = (int)LuaDLL.luaL_checknumber(L, 12);
                Logic.Character.Model.BuffInfo obj = new Logic.Character.Model.BuffInfo(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Logic.Character.Model.BuffInfo.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            if (Application.isPlaying)
            {
                Logic.Character.CharacterEntity         characterEntity   = target as Logic.Character.CharacterEntity;
                Logic.Character.Model.CharacterBaseInfo characterBaseInfo = characterEntity.characterInfo;
                if (characterBaseInfo == null)
                {
                    return;
                }
                EditorGUILayout.LabelField("userId:", characterEntity.characterInfo.instanceID.ToString());
                EditorGUILayout.LabelField("pos:", characterEntity.pos.ToString());
                EditorGUILayout.LabelField("eulerAngles:", characterEntity.eulerAngles.ToString());
                EditorGUILayout.LabelField("scale:", characterEntity.scale.ToString());
                EditorGUILayout.LabelField("height:", characterEntity.height.ToString());
                EditorGUILayout.LabelField("state:", characterEntity.status.ToString());
                EditorGUILayout.LabelField("tickCD:", characterEntity.tickCD.ToString());
                EditorGUILayout.LabelField("canAttack:", characterEntity.canAttack.ToString());
                EditorGUILayout.LabelField("animator speed:", characterEntity.anim.speed.ToString());
                EditorGUILayout.LabelField("is dead:", characterEntity.isDead.ToString());
                EditorGUILayout.LabelField("HP:", characterEntity.HP.ToString());
                EditorGUILayout.LabelField("MAXHP:", characterEntity.maxHP.ToString());
                EditorGUILayout.LabelField("physicsAttack:", characterEntity.physicsAttack.ToString());
                EditorGUILayout.LabelField("magicAttack:", characterEntity.magicAttack.ToString());
                EditorGUILayout.LabelField("physicsDefense:", characterEntity.physicsDefense.ToString());
                EditorGUILayout.LabelField("magicDefense:", characterEntity.magicDefense.ToString());
                EditorGUILayout.LabelField("speed:", characterEntity.speed.ToString());
                EditorGUILayout.LabelField("hit:", characterEntity.hit.ToString());
                EditorGUILayout.LabelField("dodge:", characterEntity.dodge.ToString());
                EditorGUILayout.LabelField("crit:", characterEntity.crit.ToString());
                EditorGUILayout.LabelField("antiCrit:", characterEntity.antiCrit.ToString());
                EditorGUILayout.LabelField("block:", characterEntity.block.ToString());
                EditorGUILayout.LabelField("antiBlock:", characterEntity.antiBlock.ToString());
                EditorGUILayout.LabelField("counterAtk:", characterEntity.counterAtk.ToString());
                EditorGUILayout.LabelField("critHurtAdd:", characterEntity.critHurtAdd.ToString());
                EditorGUILayout.LabelField("critHurtDec:", characterEntity.critHurtDec.ToString());
                EditorGUILayout.LabelField("armor:", characterEntity.armor.ToString());
                EditorGUILayout.LabelField("damageDec:", characterEntity.damageDec.ToString());
                EditorGUILayout.LabelField("damageAdd:", characterEntity.damageAdd.ToString());
                //if (characterBaseInfo.hitSkillInfo != null)
                //    EditorGUILayout.LabelField("hitCD:", characterEntity.hitCD.ToString() + "/" + (Const.Model.ConstData.GetConstData().speedMax / characterEntity.speed).ToString());
                if (characterBaseInfo.skillInfo1 != null)
                {
                    EditorGUILayout.LabelField("skill1CD:", characterEntity.skill1CD.ToString() + "/" + characterBaseInfo.skillInfo1.skillData.CD);
                }
                if (characterBaseInfo.skillInfo2 != null)
                {
                    EditorGUILayout.LabelField("skill2CD:", characterEntity.skill2CD.ToString() + "/" + characterBaseInfo.skillInfo2.skillData.CD);
                }
                //EditorGUILayout.LabelField("canOrderHit:", characterEntity.canOrderHit.ToString());
                EditorGUILayout.LabelField("canPlayHit:", characterEntity.canPlayHit.ToString());
                EditorGUILayout.LabelField("canOrderSkill1:", characterEntity.canOrderSkill1.ToString());
                EditorGUILayout.LabelField("canPlaySkill1:", characterEntity.canPlaySkill1.ToString());
                EditorGUILayout.LabelField("canOrderSkill2:", characterEntity.canOrderSkill2.ToString());
                EditorGUILayout.LabelField("canPlaySkill2:", characterEntity.canPlaySkill2.ToString());
                EditorGUILayout.Space();
                EditorGUILayout.LabelField("当前buff列表:");
                EditorGUILayout.LabelField("是否眩晕:", characterEntity.Swimmy.ToString());
                EditorGUILayout.LabelField("是否冰冻:", characterEntity.Frozen.ToString());
                EditorGUILayout.LabelField("是否睡眠:", characterEntity.Sleep.ToString());
                EditorGUILayout.LabelField("是否石化:", characterEntity.Landification.ToString());
                EditorGUILayout.LabelField("是否禁锢:", characterEntity.Tieup.ToString());
                EditorGUILayout.LabelField("是否无敌:", characterEntity.Invincible.ToString());
                EditorGUILayout.LabelField("是否沉默:", characterEntity.Silence.ToString());
                EditorGUILayout.LabelField("是否致盲:", characterEntity.Blind.ToString());
                EditorGUILayout.LabelField("是否浮空:", characterEntity.Float.ToString());
                EditorGUILayout.LabelField("是否倒地:", characterEntity.Tumble.ToString());
                EditorGUILayout.LabelField("当前时间:", Time.time.ToString());
                EditorGUILayout.LabelField("当前战斗时间:", Common.GameTime.Controller.TimeController.instance.fightSkillTime.ToString());
                foreach (var kvp in characterEntity.buffDic)
                {
                    EditorGUILayout.LabelField(kvp.Key.ToString() + ":");
                    foreach (var b in kvp.Value)
                    {
                        if (b.mechanics != null)
                        {
                            EditorGUILayout.LabelField("技能效果ID:" + b.mechanics.mechanicsId.ToString());
                        }
                        switch (b.skillLevelBuffAddType)
                        {
                        case Logic.Enums.SkillLevelBuffAddType.Value:
                            EditorGUILayout.LabelField("按技能等级增加效果值");
                            break;

                        case Logic.Enums.SkillLevelBuffAddType.Time:
                            EditorGUILayout.LabelField("按技能等级增加效果持续时间");
                            break;
                        }
                        if (b.forever)
                        {
                            EditorGUILayout.LabelField(string.Format("{0}的光环buff", b.character.characterInfo.baseId));
                        }
                        EditorGUILayout.LabelField("buff持续时间到:" + b.time.ToString());
                        EditorGUILayout.LabelField("buff次数:" + b.count.ToString());
                        switch (b.buffAddType)
                        {
                        case Enums.BuffAddType.Fixed:
                            EditorGUILayout.LabelField("增加固定技能效果值:" + b.value.ToString());
                            break;

                        case Enums.BuffAddType.Percent:
                            EditorGUILayout.LabelField("增加百分比技能效果值:" + b.value.ToString());
                            break;
                        }
                    }
                }
                EditorGUILayout.LabelField("当前buff特效列表:");
                foreach (var kvp in characterEntity.buffEffectDic)
                {
                    EditorGUILayout.LabelField("Buff 类型:" + kvp.Key.ToString());
                    EditorGUILayout.LabelField("特效名称:");
                    foreach (var k in kvp.Value)
                    {
                        EditorGUILayout.LabelField(k);
                    }
                }
            }
        }