//using UnityEngine; //namespace G //{ // public class NormalAtkLong : NormalAtkBase // { // private bool[] EF_THRUST_ENABLE = new bool[5] // { // true, // false, // true, // false, // true // }; // private bool[] EF_THRUST_RISING = new bool[5]; // private float[] EF_THRUST_DELAY = new float[5] // { // 0.1f, // 0.2f, // 0.24f, // 0.11f, // 0.2f // }; // private int[] EF_THRUST_FORCE = new int[5] // { // 30, // 0, // 30, // 0, // 70 // }; // private bool[] EF_PUNCH_ENABLE = new bool[5] // { // true, // true, // true, // true, // false // }; // private float[] EF_PUNCH_DELAY = new float[5] // { // 0.3f, // 0.3f, // 0.1f, // 0.4f, // 0f // }; // private int[] EF_PUNCH_FORCE = new int[5] // { // 0, // 40, // 0, // 0, // 0 // }; // private float[] EF_PUNCH_STEP = new float[5] // { // 0f, // -45f, // 0f, // 30f, // 0f // }; // private float[] EF_PUNCH_UPANGLE = new float[5] // { // 0f, // 0.8f, // 0f, // 0f, // 0f // }; // private float[] EF_PUNCH_COLLIDERSIZE = new float[5] // { // 0.06f, // 0.1f, // 0.06f, // 0.15f, // 0f // }; // private bool[] EF_PUNCH_BOOM = new bool[5] // { // false, // false, // false, // true, // false // }; // private bool[] EF_SPLASH_ENABLE = new bool[5] // { // false, // false, // false, // false, // true // }; // private int[] ADD_RIGIDBODY_FORCE = new int[5] // { // 0, // 0, // 0, // 0, // 120 // }; // public NormalAtkLong() // { // m_weaponType = 4; // } // 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.719999969f; // // m_tmpAttack.layer = 1; // //} // float atkSpeed = m_unit.GetAtkSpeed(); // int num = 0; // Vector3 vector = m_target.GetCurPos() - m_unit.GetCurPos(); // vector.y = 0f; // vector.Normalize(); // m_unit.LookToTarget(m_target.transform); // if (ADD_RIGIDBODY_FORCE[nStep] > 0) // { // m_unit.MoveWithNormalAtk(vector * ADD_RIGIDBODY_FORCE[nStep]); // } // if (EF_THRUST_ENABLE[nStep]) // { // //m_thrustScript.m_attackRising = EF_THRUST_RISING[nStep]; // num = EF_THRUST_FORCE[nStep]; // m_thrustScript.SwingOn(EF_THRUST_DELAY[nStep] - atkSpeed, 4, 1, 20, 1, num); // } // if (EF_PUNCH_ENABLE[nStep]) // { // //m_punchScript.m_attackRising = false; // m_punchScript.PunchShoot(EF_PUNCH_DELAY[nStep] - atkSpeed, EF_PUNCH_FORCE[nStep], m_unit.target.transform, atkSpeed * EF_PUNCH_STEP[nStep], EF_PUNCH_UPANGLE[nStep], EF_PUNCH_COLLIDERSIZE[nStep], EF_PUNCH_BOOM[nStep]); // } // if (EF_SPLASH_ENABLE[nStep]) // { // m_splashScript.gameObject.GetComponent().enabled = false; // //m_splashScript.m_attackRising = false; // m_splashScript.SplashOn(true, 0.05f, 0.6f - atkSpeed); // } // m_unit.SetCurDir(vector); // return result; // } // public override void CancelAtk() // { // base.CancelAtk(); // m_thrustScript.SwingOff(); // m_punchScript.PunchOff(); // m_splashScript.SplashOff(); // } // } //}