|
@@ -202,22 +202,6 @@ public class Character : MonoBehaviour
|
|
|
|
|
|
|
|
public virtual void Attack1()
|
|
public virtual void Attack1()
|
|
|
{
|
|
{
|
|
|
- Vector3 leftDir = GetMoveDir();
|
|
|
|
|
- if (leftDir.x > 0.3f)
|
|
|
|
|
- {
|
|
|
|
|
- if (bodyTrans.localScale.x > 0)
|
|
|
|
|
- {
|
|
|
|
|
- Turn();
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- else if (leftDir.x < -0.3f)
|
|
|
|
|
- {
|
|
|
|
|
- if (bodyTrans.localScale.x < 0)
|
|
|
|
|
- {
|
|
|
|
|
- Turn();
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
ani.Play("attack_summon", 0, 0);
|
|
ani.Play("attack_summon", 0, 0);
|
|
|
if (!isNonAttack)
|
|
if (!isNonAttack)
|
|
|
{
|
|
{
|