GameObjectやComponentをnullと比較するときの落し穴 - Qiita

[SerializeField] private GameObject target; // 参照している。nullじゃない。 private void Awake() { Debug.Log(t…