Exemplo n.º 1
0
 private void Start()
 {
     anim = GetComponent <Animator>();
     coll = GetComponentInParent <PlayerCollision>();
     move = GetComponentInParent <PlayerMovement>();
     sr   = GetComponent <SpriteRenderer>();
 }
 private void Start()
 {
     coll         = GetComponent <PlayerCollision>();
     rigi         = GetComponent <Rigidbody2D>();
     anim         = GetComponentInChildren <PlayerAnimation>();
     betJump      = GetComponent <BetterJumping>();
     camTS        = Camera.main.transform;
     rippleEffect = camTS.GetComponent <RippleEffect>();
 }