//using UnityEngine; //namespace G //{ // public class NormalAtkLongKnife : NormalAtkBase // { // private int[] ADD_RIGIDBODY_FORCE = new int[5] // { // 160, // 130, // 90, // 0, // 0 // }; // private int[] EF_SWING1_FORCE = new int[5] // { // 0, // 0, // 90, // 0, // 200 // }; // private float[] EF_SWING1_DELAY = new float[5] // { // 0.15f, // 0.5f, // 0.5f, // 0f, // 0.4f // }; // private bool[] EF_SWING1_ENABLE = new bool[5] // { // true, // true, // true, // false, // true // }; // private Quaternion[] EF_SWING1_ROTATION = new Quaternion[5] // { // Quaternion.identity, // Quaternion.Euler(0f, 0f, -90f), // Quaternion.Euler(0f, 0f, 180f), // Quaternion.Euler(0f, 0f, 160f), // Quaternion.Euler(0f, 0f, -20f) // }; // private Vector3[] EF_SWING1_OFF = new Vector3[5] // { // Vector3.up * 0.06f, // Vector3.up * 0.1f, // Vector3.up * 0.1f, // Vector3.up * 0.1f, // Vector3.up * 0.1f // }; // private bool[] EF_SWING1_RISING = new bool[5] // { // true, // true, // false, // false, // true // }; // private bool[] EF_SPLASH_ENABLE = new bool[5] // { // false, // true, // false, // false, // false // }; // private bool[] EF_SWING_EX_ENABLE = new bool[5] // { // false, // false, // false, // true, // false // }; // public NormalAtkLongKnife() // { // m_weaponType = 3; // } // protected override float UpdateStep(int nStep) // { // float result = 0f; // if (nStep < 0 || nStep > m_totalStep) // { // return result; // } // OnFog(0); // m_unit.PlayAnimation(ANIM_NAME[nStep]); // //result = m_unit.GetAnimationTime(ANIM_NAME[nStep]); // //if (EX_ANIM_NAME[nStep].Length > 0) // //{ // // m_tmpAttack = m_unit.PlayAnimationQueued(EX_ANIM_NAME[nStep]); // // m_tmpAttack.speed = 0.24f; // // if (m_chaType == enCharacterType.CHAR_TYPE_MYPLAYER || m_chaType == enCharacterType.CHAR_TYPE_ENEMY_PLAYER) // // { // // m_tmpAttack.speed *= 3f; // // } // // m_tmpAttack.layer = 1; // //} // m_unit.LookToTarget(m_target.transform); // float atkSpeed = m_unit.GetAtkSpeed(); // int num = 0; // Vector3 value = m_target.GetCurPos() - m_unit.GetCurPos(); // value.y = 0f; // Vector3 a = Vector3.Normalize(value); // if (ADD_RIGIDBODY_FORCE[nStep] > 0) // { // m_unit.MoveWithNormalAtk(a * ADD_RIGIDBODY_FORCE[nStep]); // } // if (EF_SWING1_ENABLE[nStep]) // { // m_efSwing1.localRotation = EF_SWING1_ROTATION[nStep]; // m_efSwing1.position = m_transform.position + EF_SWING1_OFF[nStep]; // //m_swingScript.m_attackRising = EF_SWING1_RISING[nStep]; // num = EF_SWING1_FORCE[nStep]; // m_swingScript.SwingOn(EF_SWING1_DELAY[nStep] - atkSpeed, 2, 2, 20, 1, num); // } // if (EF_SPLASH_ENABLE[nStep]) // { // m_splashScript.gameObject.GetComponent().enabled = false; // //m_splashScript.m_attackRising = true; // m_splashScript.SplashOn(true, 0.1f, 0.5f - atkSpeed); // } // if (EF_SWING_EX_ENABLE[nStep]) // { // m_efSwingEx1.localRotation = Quaternion.Euler(0f, 0f, 160f); // m_efSwingEx1.localScale = Vector3.one * 2.4f; // m_efSwingEx1.position = m_transform.position + Vector3.up * 0.1f; // //m_swingEx1Script.m_attackRising = true; // m_swingEx1Script.SwingOn(0.36f - atkSpeed, 2, 2, 20, 1, 120); // } // return result; // } // public override void CancelAtk() // { // base.CancelAtk(); // m_swingScript.SwingOff(); // m_splashScript.SplashOff(); // m_swingEx1Script.SwingOff(); // } // } //}