public override void loadanimation(ns_predefine.ModelEnum _type) { _WPType = _type; Dictionary <ModelEnum, string[]> _anim = new Dictionary <ModelEnum, string[]> () { { ModelEnum.Idle, new string[] { "Idle", "Idle" } }, { ModelEnum.Run, new string[] { "Run", "Run" } }, { ModelEnum.Die, new string[] { "Die", "Die" } }, { ModelEnum.Atk_Normal_0, new string[] { "SlashAttack01", "Slash Attack 01" } }, { ModelEnum.Atk_Normal_1, new string[] { "SlashAttack02", "Slash Attack 02" } }, { ModelEnum.Atk_Skill_0, new string[] { "JumpAttack", "Jump Attack" } }, { ModelEnum.Atk_Skill_1, new string[] { "DoubleAttack", "Double Attack" } }, }; _AnimParam = new Dictionary <ModelEnum, roleanim> (); foreach (ModelEnum _e in _anim.Keys) { _AnimParam.Add(_e, new roleanim(_anim [_e] [0], _anim [_e] [1], _e)); } _AnimEv = new Dictionary <int, roleanimev> () { //WP_THS { Animator.StringToHash(_AnimParam[ModelEnum.Atk_Normal_0]._animname), new roleanimev(_AnimParam[ModelEnum.Atk_Normal_0], 0.02f, -1.0f, 0.48f, 0.94f) }, { Animator.StringToHash(_AnimParam[ModelEnum.Atk_Normal_1]._animname), new roleanimev(_AnimParam[ModelEnum.Atk_Normal_1], 0.02f, -1.0f, 0.48f, 0.94f) }, { Animator.StringToHash(_AnimParam[ModelEnum.Atk_Skill_0]._animname), new roleanimev(_AnimParam[ModelEnum.Atk_Skill_0], 0.0f, 0.3f, 0.4f, 0.94f) }, { Animator.StringToHash(_AnimParam[ModelEnum.Atk_Skill_1]._animname), new roleanimev(_AnimParam[ModelEnum.Atk_Skill_1], 0.02f, -1.0f, 0.58f, 0.94f) }, }; }
public override void loadanimation(ns_predefine.ModelEnum _type) { _WPType = _type; Dictionary <ModelEnum, string[]> _anim = new Dictionary <ModelEnum, string[]> () { { ModelEnum.Idle, new string[] { "FlyIdle", "Idle" } }, { ModelEnum.Run, new string[] { "FlyForward", "Idle" } }, { ModelEnum.Die, new string[] { "FlyDie", "Fly Die" } }, { ModelEnum.Atk_Normal_0, new string[] { "FlyBiteAttack", "Fly Bite Attack" } }, { ModelEnum.Atk_Normal_1, new string[] { "FlyProjectileAttack", "Fly Projectile Attack" } }, { ModelEnum.Atk_Skill_0, new string[] { "FlyCastSpell", "Fly Cast Spell" } }, { ModelEnum.Atk_Skill_1, new string[] { "FlyFireBreathAttack-Middle", "Fly Fire Breath Attack" } }, }; _AnimParam = new Dictionary <ModelEnum, roleanim> (); foreach (ModelEnum _e in _anim.Keys) { _AnimParam.Add(_e, new roleanim(_anim [_e] [0], _anim [_e] [1], _e)); } _AnimEv = new Dictionary <int, roleanimev> () { //WP_THS { Animator.StringToHash(_AnimParam[ModelEnum.Atk_Normal_0]._animname), new roleanimev(_AnimParam[ModelEnum.Atk_Normal_0], 0.02f, -1.0f, 0.48f, 0.94f) }, { Animator.StringToHash(_AnimParam[ModelEnum.Atk_Normal_1]._animname), new roleanimev(_AnimParam[ModelEnum.Atk_Normal_1], 0.02f, -1.0f, 0.48f, 0.94f) }, { Animator.StringToHash(_AnimParam[ModelEnum.Atk_Skill_0]._animname), new roleanimev(_AnimParam[ModelEnum.Atk_Skill_0], 0.0f, 0.3f, 0.4f, 0.94f) }, { Animator.StringToHash(_AnimParam[ModelEnum.Atk_Skill_1]._animname), new roleanimev(_AnimParam[ModelEnum.Atk_Skill_1], 0.02f, -1.0f, 0.58f, 0.94f) }, }; _Animator.SetBool("Fly", true); }