목록플레이어 (2)
moonee-e3 님의 블로그
2024-05-28 시야각에 들어오면 죽이는 적 구현
최종 코드 (BlueEnemy)using System.Collections;using System.Collections.Generic;using UnityEngine;public class BlueEnemy : MonoBehaviour{ // 참고 링크 https://nicotina04.tistory.com/197 // 시야 영역의 반지름과 시야 각도 조절하는 코드 public float viewRadius; // 시야 범위 [Range(0, 360)] public float viewAngle; // 시야 각도 public GameObject HitCircle; // 범위 나타내는 오브젝트 // 마스크 2종 //타켓과 오브젝트 public LayerMask ta..
개발 일지 [3D | Dream Forest]
2024. 6. 21. 00:34
2024-05-20 플레이어의 카메라 시점 변경
using System.Collections;using System.Collections.Generic;using UnityEngine;public class Follow : MonoBehaviour{ public Transform target; public Vector3 offset; // Update is called once per frame void Update() { transform.position = target.position + offset; } //카메라 안 오브제 확인 코드 https://blog.naver.com/10ro/220895900463}
개발 일지 [3D | Dream Forest]
2024. 6. 21. 00:24