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,27 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EnemyController_Bubble : MonoBehaviour {
[SerializeField] Rigidbody2D body;
[SerializeField] float diff = 10.0f;
[SerializeField] float jumpSpeed = 200f;
[SerializeField] float runSpeed = 100f;
// Start is called before the first frame update
void Start() {
body = GetComponent<Rigidbody2D>();
if (Random.Range(0.0f, 1.0f) > 0.5) {
body.velocity = new Vector2(
Random.Range(-1.0f, 1.0f) * runSpeed,
Random.Range(-1.0f, 1.0f) * runSpeed);
}
}
// Update is called once per frame
void FixedUpdate() {
body.velocity = new Vector2(
Mathf.Clamp(body.velocity.x, -1*jumpSpeed, jumpSpeed),
Mathf.Clamp(body.velocity.y, -1 * jumpSpeed, jumpSpeed));
}
}