protected override void ShootEnd() { base.ShootEnd(); // Debug.Log("ShootEnds"); if (rotateContainer != null) { TryAttack(rotateContainer.trg); rotateContainer = null; } }
private void subTR(Vector3 target,Vector3 dir) { if (isPlayAttack) { rotateContainer = new RotateContainer(target); } else { heorControl.SetLookDir(dir); shootContainer = new ShootContainer(dir); } }
private void subTR(Vector3 target,Vector3 dir,float additionalPower) { if (isPlayAttack) { rotateContainer = new RotateContainer(target); } else { #if UNITY_EDITOR Debug.DrawRay(transform.position, dir * 5, Color.green, 2); #endif heorControl.SetLookDir(dir); shootContainer = new ShootContainer(dir, additionalPower); } }