private void Start() { this.Animator = this.transform.GetComponent <Animator>(); _audioHandler = new CubeGeneratorAudioHandler(gameObject.GetComponent <FMOD_CustomLoopingEmitter>()); if (this.Animator == null) { QuickLogger.Error("Animator component not found on the GameObject."); _loaded = false; } _mono = this.transform.GetComponent <CubeGeneratorMono>(); if (_mono == null) { QuickLogger.Error("CubeGeneratorMono component not found on the GameObject."); _loaded = false; } if (this.Animator != null && this.Animator.enabled == false) { QuickLogger.Debug("Animator was disabled and now has been enabled"); this.Animator.enabled = true; } _loaded = true; }