private void Start() { rb2d = gameObject.GetComponent <Rigidbody2D>(); anim = gameObject.GetComponent <Animator>(); animatio = gameObject.GetComponent <Animation>(); curtHealth = maxHealth = 6; copsWalk = GameObject.FindGameObjectWithTag("Enemy").GetComponent <CopsWalk>(); myCollider = GetComponent <Collider2D>(); jumpTimeCounter = jumpTime; itDied = false; }
void Start() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>(); copswalk = GameObject.FindGameObjectWithTag("Enemy").GetComponent <CopsWalk>(); }