etc./🕹️unity10 간단 실습 - fps 게임 # Enemy using System.Collections; using System.Collections.Generic; using UnityEngine; // 태어날 때 30% 확률로 플레이어 방향, 나머지 확률로 아래방향으로 정하고 // 살아가면서 그 방향으로 계속 이동하고 싶다. public class Enemy : MonoBehaviour { // 방향 Vector3 dir; //속력 public float speed = 5; // Start is called before the first frame update void Start() { // 태어날 때 // 1. 30% 확률로 플레이어 방향, 나머지 확률로 아래방향으로 정하고 int result = UnityEngine.Random.Range(.. 2022. 6. 11. 사용자 입력 제어 및 오브젝트 이동 처리 using System.Collections; using System.Collections.Generic; using UnityEngine; //사용자의 입력에 따라 플레이어를 이동하고 싶다. public class PlayerMove : MonoBehaviour { public float speed = 5; //기획자가 speed를 수정하려면 유니티 에디터 상에서 수정할 수 있어야 하기 때문에 public써줌 // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { //사용자의 입력에 따라 플레이어를 이동하고 싶다. // 1. 사용자의 입력에 따라 fl.. 2022. 6. 11. unity 물리엔진과 충돌 시스템 #1 DestroyZone using System.Collections; using System.Collections.Generic; using UnityEngine; public class DestroyZone : MonoBehaviour { private void OnTriggerEnter(Collider other) { //너만 죽어라 Destroy(other.gameObject); } // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } } #2 EnemyManager using System.Collections; using System.C.. 2022. 6. 11. 작년 공부 기록용 2021년도 여름 방학때 VR/AR 콘텐츠 개발자 교육 신청해서 VR게임 개발 공부를 했었다 유니티 프로젝트가 용량 차지를 너무 해서 다 정리해놓고 지울 생각이다,, 간단 후기 비대면 수업은 학교다니면서 듣는다고 힘들었고 대면수업은 센텀까지 가는게 힘들었음 아침 9시부터 저녁 6시까지 수업들었는데 좀 힘들더라 여기서 혼밥왕 찍음ㅋㅋ 맨날 혼밥했다 근데 vr 여기서 처음 해봐서 엄청 재밌었음 이거 듣고 게임 개발은 바로 접었다 사람이 할 게 아닌것 같더라 2022. 6. 11. 이전 1 2 다음