Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     player = gameObject.GetComponentInParent <playercode>();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     player = GameObject.FindGameObjectWithTag("Player").GetComponent <playercode>();
 }