Scripting: Basic copying of entities during runtime + Reference Components using UUID

This commit is contained in:
Simon Lübeß
2023-09-21 14:23:00 +02:00
parent ba54d48dfe
commit 446dc2ca2a
7 changed files with 175 additions and 43 deletions
+2 -2
View File
@@ -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 };
}