/// <summary> /// Returns the sky fragment block. /// </summary> /// <returns></returns> public SkyFragmentBlock GetAttachedFragmentBlock() { if (this.attachedFragmentBlock == null) { Debug.Log("<color=cyan> GetAttachedFragmentBlock entered null. Finding in child </color>"); this.attachedFragmentBlock = GetComponentInChildren <SkyFragmentBlock> (); } return(this.attachedFragmentBlock); }
/// <summary> /// Gets the sky fragment block. /// </summary> /// <returns>The sky fragment block.</returns> public SkyFragmentBlock GetSkyFragmentBlock() { // Must not enter this. if (this.skyFragmentBlock == null) { this.skyFragmentBlock = GameObject.FindObjectOfType <SkyFragmentBlock> (); } return(this.skyFragmentBlock); }