Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     player   = gameObject.GetComponentInParent <SimplePlayerMovement>();
     rb2d     = gameObject.GetComponentInParent <Rigidbody2D>();
     anim     = gameObject.GetComponentInParent <Animator> ();
     spriRend = gameObject.GetComponentInParent <SpriteRenderer> ();
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     player = gameObject.GetComponentInParent <SimplePlayerMovement>();
     anim   = gameObject.GetComponentInParent <Animator> ();
 }