Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     player = FindObjectOfType <player2d> ();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     player = GetComponentInParent <player2d>();
     rb2d   = GetComponentInParent <Rigidbody2D>();
 }