로딩
티스토리 데이터 처리 중입니다.

[유니티 C#][기초] 5.플레이어 슈팅 1

 [유니티 C#][기초] 5.플레이어 슈팅 1

12345678910111213141516171819202122232425262728293031323334353637383940using System.Collections;using System.Collections.Generic;using UnityEngine; public class PlayerShooting : MonoBehaviour{ public Transform gunBarrelEnd; private LineRenderer gunLine; public float range = 100f; private Ray ray = new Ray(); private RaycastHit hit; public void Awake() { //자식에게 있는 컴포넌트를 가져온다. gunLine = GetCompone.....