[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 게임 개발 2022.10.05
[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 .. 게임 개발 2022.08.07
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 게임 개발 2022.05.26