//Called every time Unity compiles scripts private void OnValidate() { if (partDesc == null) { partDesc = FindObjectOfType <PartDescHud>(); } }