private void ToUpRush(E_PterosaurState state) { pathIndex = 0; animator.speed = 1; pState = state; pterosaurBehaviour.EnterInvincible(false); pterosaurBehaviour.ClearHitPoint(); if (pState == E_PterosaurState.UpRush0) { a_info.name = "attack_claw1"; a_info.id = 21; path.Clear(); Vector3 pos = pterosaurBehaviour.transform.position + pterosaurBehaviour.transform.forward * Random.Range(2.0f, 3.0f) + pterosaurBehaviour.transform.up * Random.Range(3.0f, 5.0f); path.Add(pos); pos += -4 * pterosaurBehaviour.transform.right - 4 * pterosaurBehaviour.transform.forward; path.Add(pos); path.Add(fixedPos); } else if (pState == E_PterosaurState.UpRush1) { a_info.name = "attack_beat1"; a_info.id = 20; path.Clear(); Vector3 pos = pterosaurBehaviour.transform.position + pterosaurBehaviour.transform.forward * Random.Range(4.0f, 5.0f) + pterosaurBehaviour.transform.up * Random.Range(3.0f, 5.0f); path.Add(pos); pos += -3 * pterosaurBehaviour.transform.right - 4 * pterosaurBehaviour.transform.forward; path.Add(pos); path.Add(fixedPos); } }
private void ToUpRush(E_PterosaurState state) { pathIndex = 0; animator.speed = 1; pState = state; pterosaurBehaviour.EnterInvincible(false); pterosaurBehaviour.ClearHitPoint(); path.Clear(); Vector3 pos = pterosaurBehaviour.transform.position + pterosaurBehaviour.transform.forward * Random.Range(2.0f, 3.0f) + pterosaurBehaviour.transform.up * Random.Range(3.0f, 5.0f); path.Add(pos); pos += -5 * pterosaurBehaviour.transform.right - 6 * pterosaurBehaviour.transform.forward; path.Add(pos); }
private void UseSkill(E_PterosaurState skill) { canUpdateSkill = false; pterosaurBehaviour.EnterInvincible(); switch (skill) { case E_PterosaurState.Rain: pState = E_PterosaurState.Rain; break; case E_PterosaurState.Claw: pState = E_PterosaurState.Claw; break; case E_PterosaurState.Beat: pState = E_PterosaurState.Beat; break; } }
private void ToUpRush(E_PterosaurState state) { ioo.cameraManager.PlayCPA(); pathIndex = 0; animator.speed = 1; pState = state; pterosaurBehaviour.EnterInvincible(false); pterosaurBehaviour.ClearHitPoint(); a_info.name = "attack_beat1"; a_info.id = 20; path.Clear(); Vector3 pos = pterosaurBehaviour.transform.position + pterosaurBehaviour.transform.forward * Random.Range(2.0f, 3.0f) + pterosaurBehaviour.transform.up * Random.Range(3.0f, 5.0f); path.Add(pos); pos += -5 * pterosaurBehaviour.transform.right - 6 * pterosaurBehaviour.transform.forward; path.Add(pos); path.Add(new Vector3(139.696f, 17.0503f, 60.164f)); }
public PterosaurSkill(E_PterosaurState _skill, float _time = -1) { skill = _skill; time = _time; coolTime = _time; }