Insanely huge initial commit

This commit is contained in:
2026-02-21 17:04:05 -08:00
parent 9cdd36191a
commit 613d75914a
22525 changed files with 4035207 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyController_Shooter : MonoBehaviour {
[SerializeField] Rigidbody2D body;
[SerializeField] float diff = 20.0f;
[SerializeField] float minSpeed = 20f;
[SerializeField] float maxSpeed = 100f;
// Start is called before the first frame update
void Start() {
body = GetComponent<Rigidbody2D>();
if (transform.position.x < 0) {
body.velocity = new Vector2(Random.Range(minSpeed, maxSpeed), 0);
} else {
body.velocity = new Vector2(-1.0f*Random.Range(minSpeed, maxSpeed), 0);
}
}
private void FixedUpdate() {
if (Mathf.Abs(transform.position.x) > 480) {
Destroy(gameObject);
}
}
}