Commit 0e4daf51 authored by 15박보승's avatar 15박보승

간단한 총알 파티클 효과 추가

parent 722d5b28
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -19,7 +19,7 @@ public class PlayerController : MonoBehaviour
private bool isWired;
[SerializeField]
private Transform groundChecker;
[SerializeField]
......@@ -31,7 +31,9 @@ public class PlayerController : MonoBehaviour
}
}
[SerializeField]
[SerializeField]
private ParticleSystem bulletEffect;
[SerializeField]
private LayerMask enemyMask;
#if UNITY_EDITOR
......@@ -74,6 +76,8 @@ public class PlayerController : MonoBehaviour
if (Input.GetMouseButton(0))
{
bulletEffect.transform.rotation = Camera.main.transform.rotation;
bulletEffect.Play();
foreach (var enemyHit in enemyHits)
{
enemyHit.collider.GetComponent<Enemy>()?.GetDamaged(1);
......
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