Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <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);
 }