public void Setup() { if (needsInit) { ECSCore.Setup(); ECSCore.Start(); needsInit = false; } box = new Entity(); box.MoveTo(new Vector2(50, 50)); box.Size = new Vector2(50, 50); box.Add <Component_Collision_AABox>(); circle = new Entity(); circle.MoveTo(new Vector2(50, 50)); circle.Size = new Vector2(50, 50); circle.Add <Component_Collision_AABox>(); }
public void Setup() { if (needsInit) { ECSCore.Setup(); ECSCore.Start(); needsInit = false; } e1 = new Entity(); e1.MoveTo(new Vector2(50, 50)); e1.Size = new Vector2(50, 50); e1.Add <Component_Collision_AABox>(); e2 = new Entity(); e2.MoveTo(new Vector2(50, 50)); e2.Size = new Vector2(50, 50); e2.Add <Component_Collision_AABox>(); }