// Use this for initialization void Start() { animationPlaying = false; print("initialize"); harmfulCollision = player.GetComponent <HarmfulCollision>(); currentLives = harmfulCollision.health; }
void Start() { rb2d = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); harmfulCollision = GetComponent <HarmfulCollision>(); }