본문 바로가기

Tech Review : Unity & C#10

4. Argon Assault : Unity's New Input System ~ Set Up Firing Input Udemy 강좌 'Complete C# Unity Game Developer 3D' 리뷰 및 기술 기록지입니다. Project Boost : 75. Unity's New Input System ~ 84. Set Up Firing Input [75. Unity's New Input System] new Input System을 적용하여 키보드 입력을 불러온다. *설정을 추가하여 여러가지 입력을 받아올 수 있다. (게임패드 + 다른 키보드 등) OnEnable() : 활성화가 될 때 한번 실행된다. OnDisable() : 비활성화가 될 때 한번 실행된다. [76. Start Moving Our Player] X축에 집중하여, 화면의 오른쪽에 치우치게 위치 변환 position : 월드 포지션(0, 0, 0.. 2023. 11. 10.
3. Project Boost : Add cheat / Debug Keys ~ Wrap Up (6) Udemy 강좌 'Complete C# Unity Game Developer 3D' 리뷰 및 기술 기록지입니다. Project Boost : 54.Add cheat / Debug Keys ~ 63.Wrap Up 54. Add cheat / Debug Keys 어떠한 동작이 이어지도록 디버그 키를 설정해보자. 'L' = load the next level 'C' = disable collisions bool collisionDisable = false; void Update() { RespondToDebugKeys(); } void RespondToDebugKeys() { //키 L을 누르면 if (Input.GetKeyDown(KeyCode.L)) { LoadNextLevel(); } //키 C를 누르면.. 2023. 11. 3.
3. Project Boost : Switch Statements ~ Refactor With Extract Method Udemy 강좌 'Complete C# Unity Game Developer 3D' 리뷰 및 기술 기록지입니다. Project Boost : 44. Switch Statements ~ 53. Refactor With Extract Method 44. Switch Statements 이번 강의에서는 로켓의 상태를 바꾸는 방법에 대해서 학습하게 됩니다. console 창에서 friendly point에 있을 때, obstacle에 부딪혔을 때, 혹은 finish 지점에 도착했을 때 각기 다른 상태를 출력하게 됩니다. tag를 생성하여 friendly, fuel, finish 지정 CollisionHandler 스크립트를 생성해줍니다. using UnityEngine; public class CollisonH.. 2023. 11. 2.
3. Project Boost 31~43 Udemy 강좌 'Complete C# Unity Game Developer 3D' 리뷰 및 기술 기록지입니다. Project Boost : 31.Section Intro - Project Boost ~ 43.Play AudioSource SFX [31.Section Intro - Project Boost ~ 33.Onion Design] Project Boost 개요 및 기능 소개 [34.Unity Units] 본격적 프로젝트 시작, 기본 틀 제작(지형, 로켓) [35.Introducing Classes] C#의 class에 대한 기본 지식을 배운다. - class는 코드를 정리하는 데 사용한다. - class는 유사한 것들을 그룹화할 수 있게 해주는 변수와 방법에 대한 'Containers'이다. -.. 2023. 11. 2.