Would it be redundant to check for Nulls in the Awake function() when using GetComponents if the script already has RequireComponent? Seems debatable but is it good or bad practice? Would there be a better way to check for nulls such as using Try and Catch?
Ex:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(Rigidbody))]
public class test : MonoBehaviour {
private Rigidbody rb;
void Awake()
{
rb = GetComponent<Rigidbody>();
if (rb == null)
{
Debug.Log("Rigidbody cannot be null");
}
}