programming-architecture
Installation
SKILL.md
Entity Component System (ECS)
Traditional OOP (BAD):
// Everything coupled, hard to optimize
public class Enemy : MonoBehaviour
{
public float health;
public float speed;
public Rigidbody rb;
void Update()
{
// Movement
rb.velocity = transform.forward * speed;
// AI
if (PlayerInRange()) Attack();