Ejemplo n.º 1
0
 private void Awake()
 {
     gameDirector = GameObject.FindObjectOfType <DirectorGame>();
     sprRend      = this.GetComponentInChildren <SpriteRenderer>();
     thisCol2D    = this.GetComponent <Collider2D>();
     txtMesh      = this.GetComponentInChildren <TextMesh>();
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     startScale   = this.transform.localScale;
     txtMesh      = this.GetComponent <TextMesh>();
     gameDirector = GameObject.FindObjectOfType <DirectorGame>();
 }