public override void OnCollisionEnter(Collision col) { if (col.gameObject.tag == "Player") { HeroStats.GetDamage(GetDamage()); } }
private void FixedUpdate() { if (Input.GetMouseButtonDown(0) && attackReady) { eat = true; beak.SetActive(true); //print("dziób"); StartCoroutine(PlayerAttack()); attackReady = false; } else { eat = false; beak.SetActive(false); } //do testowania if (Input.GetKeyDown(KeyCode.Q)) { HeroStats.GetDamage(1); } }