[unity] 코드 구역 구분 하기
·
게임 개발
//#region? 구역 구분 #region singleton public static GameManager instance = null; private void Awake() { if (null == instance) { instance = this; DontDestroyOnLoad(this.gameObject); } else { Destroy(this.gameObject); } } #endregion
[unity] raycast 사용하기
·
게임 개발
using System.Collections; using System.Collections.Generic; using UnityEngine; public class RayInteraction : MonoBehaviour { private Camera playerCam; public float distance = 100f; public LayerMask whatIsTarget; private Transform moveTarget; private float targetDistance; // Start is called before the first frame update void Start() { playerCam = Camera.main; } // Update is called once per frame ..
Unity로 printf(”helloGachon!”); 게임개발일지
·
게임 개발
https://gentle-mandolin-ab0.notion.site/printf-helloGachon-e14f9740ae474faf99c12aa9c8e35cdb printf(”helloGachon!”); 게임개발일지 A new tool for teams & individuals that blends everyday work apps into one. gentle-mandolin-ab0.notion.site