mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Scripting: Basic copying of entities during runtime + Reference Components using UUID
This commit is contained in:
@@ -26,10 +26,10 @@ public struct Collision2D
|
||||
/// Gets the rigidbody whose Collider takes part in the collision.
|
||||
/// This Rigidbody is either a component of the entity whose script instance received the event or a parent of it.
|
||||
/// </summary>
|
||||
public Rigidbody2D Rigidbody => new() { Entity = Entity };
|
||||
public Rigidbody2D Rigidbody => new() { _uuid = _entity };
|
||||
|
||||
/// <summary>
|
||||
/// Gets the other rigidbody whose Collider takes part in the collision.
|
||||
/// </summary>
|
||||
public Rigidbody2D OtherRigidbody => new() { Entity = OtherEntity };
|
||||
public Rigidbody2D OtherRigidbody => new() { _uuid = _otherEntity };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user