Files
ihob/Assets/PegLegIo/scripts/EnemyBulletController.cs
2026-02-21 17:04:05 -08:00

20 lines
433 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyBulletController : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void LateUpdate() {
if (Mathf.Abs(transform.position.x) > 480 || Mathf.Abs(transform.position.y) > 270) {
Destroy(gameObject);
}
}
}