Ejemplo n.º 1
0
 void Awake()
 {
     if (this.gameObject.GetComponent<Texture_2D>())
         texture_2D = this.gameObject.GetComponent<Texture_2D>();
     else if (this.transform.parent.GetComponent<Texture_2D>())
         texture_2D = this.transform.parent.GetComponent<Texture_2D>();
 }
Ejemplo n.º 2
0
 void Awake()
 {
     if (this.gameObject.GetComponent <Texture_2D>())
     {
         texture_2D = this.gameObject.GetComponent <Texture_2D>();
     }
     else if (this.transform.parent.GetComponent <Texture_2D>())
     {
         texture_2D = this.transform.parent.GetComponent <Texture_2D>();
     }
 }