//using System.Collections.Generic; //using UnityEngine; //namespace G //{ // public class Stat_XuLiSkillAction : Stat_SkillAction // { // private float m_detectTouchTimeStart = 0.4f; // private float m_detectTouchTimeEnd = 0.6f; // private bool m_needTouch = true; // private bool m_isTouched; // private bool m_isStartTiming; // private float m_curTime; // private bool m_isSuccessUseNextSkill; // private int nextIndex = -1; // private CamMove script_cam; // public Stat_XuLiSkillAction(Stat_StateManager statMgr) // : base(statMgr) // { // } // public override bool Enter(Dictionary param, bool clearDelegates = false) // { // return true; // } // protected override void SetTimers() // { // m_statMgr.AddTimer(m_curAniLength, AnimationEnd_CB); // float num = m_curAniLength - m_detectTouchTimeEnd; // num = ((!(num < 0f)) ? num : 0f); // m_statMgr.AddTimer(num, StartYellowCircleAnimation_CB); // m_statMgr.AddTimer(0.01f, WarningEnd_CB); // for (int i = 0; i < m_curSkillConfig.m_fx.Count; i++) // { // float frame = m_curSkillConfig.m_fx[i].frame; // string name = m_curSkillConfig.m_fx[i].name; // if (!(name == string.Empty)) // { // string text = name.Split('.')[0]; // string[] array = text.Split('/'); // int num2 = array.Length; // string text2 = array[num2 - 1]; // object[] param = new object[2] // { // i, // text2 // }; // m_statMgr.AddTimer(frame, PlayEffect_CB, param); // } // } // } // public override bool UpdateDelegate() // { // if (m_isSkillWarning) // { // WarningDelegate(); // } // if (m_needTouch && m_isStartTiming) // { // if (m_curTime == 0f) // { // Ef_swtrail component = PrefabManager.Instance().Spawn("hero_xuli_guide_circle").GetComponent(); // component.Init(3f, 0.822f, (m_detectTouchTimeStart + m_detectTouchTimeEnd) * 0.5f); // component.transform.position = m_char.transform.position; // } // m_curTime += Time.deltaTime; // if (m_curTime >= m_detectTouchTimeStart && m_curTime <= m_detectTouchTimeEnd && Input.anyKeyDown && !m_isTouched) // { // m_isTouched = true; // m_isSuccessUseNextSkill = true; // } // if (Input.anyKeyDown) // { // m_isTouched = true; // } // } // return true; // } // public override bool CanTransition(enStat stat) // { // bool result = false; // if (stat == enStat.STAT_ACTION_DEAD) // { // result = true; // } // return result; // } // protected override bool PlayEffect_CB(object[] param) // { // return true; // } // public override bool WarningDelegate() // { // return base.WarningDelegate(); // } // protected override bool AnimationEnd_CB(object[] param) // { // if (m_needTouch && m_curTime < m_detectTouchTimeEnd) // { // m_statMgr.AddTimer(m_detectTouchTimeEnd - m_curTime, AnimationEnd_CB); // return false; // } // if (m_isSuccessUseNextSkill) // { // PlayNextSkill(); // return true; // } // script_cam.CancelTopView(); // m_char.IsSkilling = false; // return SetCurActionState(enStat.STAT_ACTION_MOVE, null, true); // } // protected bool StartYellowCircleAnimation_CB(object[] param) // { // m_isStartTiming = true; // return true; // } // private void PlayNextSkill() // { // Dictionary dictionary = new Dictionary(); // dictionary.Add("xuli_next_index", nextIndex + 1); // SetCurActionState(enStat.STAT_ACTION_XULI_SKILL, dictionary, true); // } // } //}