'''cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Bullet1 : MonoBehaviour
{
    
    
    public float speed = 20f;
    public Rigidbody2D rb;
    
    public float lifeTime; 

    public int damage = 1;

    void Start()
    {
        rb.velocity = transform.up * speed; 
        Destroy (gameObject, lifeTime); 
    }

    void OnTriggerEnter2D (Collider2D hitInfo)
	{
		Enemy enemy = hitInfo.GetComponent<Enemy>();
		if (enemy != null)
		{
			enemy.TakeDamage(damage);
		}

		

		Destroy(gameObject);
	}

}
'''