Commit c7e03029 authored by 18신대성's avatar 18신대성

이동중 다시 클릭시 5배 속도로 움직임

parent fb410171
......@@ -1380,7 +1380,7 @@ NavMeshAgent:
m_AgentTypeID: 0
m_Radius: 0.3
m_Speed: 1.5
m_Acceleration: 8
m_Acceleration: 1000
avoidancePriority: 50
m_AngularSpeed: 1000
m_StoppingDistance: 0
......
......@@ -86,6 +86,8 @@ public class Player : MonoBehaviour
currentFloor.isPlayerOn = true;
PlayerController.inst.CheckCurrentFloors();
anim.SetBool("isWalking", false);
anim.speed = 1;
GetComponent<NavMeshAgent>().speed = 1.5f;
GameManager.inst.isPlayerMoving = false;
}
/// <summary>
......
......@@ -180,6 +180,11 @@ public class PlayerController : SingletonBehaviour<PlayerController>
currentPlayer.Shoot(bulletList[0]);
}
}
else if (GameManager.inst.isPlayerMoving)
{
currentPlayer.GetComponent<NavMeshAgent>().speed *= 5;
currentPlayer.anim.speed *= 5;
}
}
else if (Input.GetMouseButtonDown(1) && GameManager.inst.isPlayerShooting)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment