Unity null 확인 방법(약간의 최적화편)
== 연산자Unity에서 == 연산자를 사용하게 되면 C++(네이티브 객체)에서도 null 체크를 하게 되고 C#(유니티 객체)에서도 null을 체크하게 됩니다. 총 2번의 null을 체크하게 되는 것이므로 정확도는 올라가나 리소스를 잡아먹는 문제가 발생합니다.using System.Collections;using UnityEngine;public class TestNullCheck : MonoBehaviour{ public GameObject go; private IEnumerator Start() { go = new GameObject(); Destroy(go); yield return null; CheckUnityObjec..