과녁 맞추기1 [unity] class5_3D게임 추가로 구현해본 것 1. 현재 점수를 particle로 표시해 주었다. 2. 총 점수 합계를 표시해 주었다. 3. 밤송이가 과녁을 맞추지 못한 경우 Destroy해주엇다. [전체코드] 1. BamController : 밤송이를 날리고, 밤송이가 과녁에 맞는지 여부를 검사한다. using System.Collections; using System.Collections.Generic; using UnityEngine; public class hw6Bamcontroller : MonoBehaviour { public GameObject BamGenerator; public GameObject assist; float x1, x2, y1, y2; public void Shoot(Vector3 dir) //인자로.. 2021. 8. 6. 이전 1 다음