Commit 7f35e799 authored by 18신대성's avatar 18신대성 Committed by 18손재민

에임 들어가는거 구현 완료

parent c185370d
......@@ -97,9 +97,9 @@ public class Player : MonoBehaviour
aimLight.gameObject.SetActive(true);
while (time <= endTime)
{
aimLight.intensity += 1;
aimLight.spotAngle -= ((2 * Time.deltaTime) / 60);
yield return null;
aimLight.intensity += 15 * Time.deltaTime;
aimLight.spotAngle -= 30 * Time.deltaTime;
time = Time.time;
if (!Input.GetMouseButton(0))
{
......@@ -111,6 +111,9 @@ public class Player : MonoBehaviour
}
if (time > endTime)
{
aimLight.intensity = 0;
aimLight.spotAngle = 60;
aimLight.gameObject.SetActive(false);
GameManager.inst.isPlayerShooting = true;
StartCoroutine(Camera.main.GetComponent<CameraController>().ZoomInAtPlayer(this));
}
......
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