private void OnTriggerStay2D(Collider2D other) { if (!fly) { return; } if (other.CompareTag("Player")) { playerProperty.GetBurnt(3); playerMovement.Hurt(1, Vector2.right * direction, GameManager.Enemy); Destroy(gameObject); Instantiate(hit, transform.position, Quaternion.identity).GetComponent <DamageHero>().enabled = false; } }