private void CheckNull() { if (hourglassRenderer.Equals(null)) { hourglassRenderer = GameObject.FindGameObjectWithTag("CanvasTimer").GetComponent <Image>(); } if (countdownRenderer.Equals(null)) { countdownRenderer = GameObject.FindGameObjectWithTag("CanvasCountdown").GetComponent <Image>(); } if (hourglassAnimator.Equals(null)) { hourglassAnimator = GameObject.FindGameObjectWithTag("CanvasTimer").GetComponent <Animator>(); } if (countdownAnimator.Equals(null)) { countdownAnimator = GameObject.FindGameObjectWithTag("CanvasCountdown").GetComponent <Animator>(); } if (countdownRenderer.Equals(null) || hourglassRenderer.Equals(null) || hourglassAnimator.Equals(null) || countdownAnimator.Equals(null)) { Debug.LogError("What the hell, mane"); } }