Esempio n. 1
0
 public void Reset()
 {
     gameObject = default;
     entityId   = default;
     point      = default;
     normal     = default;
     fixture    = default;
     rigidbody  = default;
     transform  = default;
 }
Esempio n. 2
0
 public BoxRaycastHit2D Init(GameObject go, Fixture f, string entityId, System.Numerics.Vector2 point = default, System.Numerics.Vector2 normal = default)
 {
     this.gameObject = go;
     this.fixture    = f;
     this.entityId   = entityId;
     this.point      = point;
     this.normal     = normal;
     if (go != null)
     {
         this.rigidbody = go.GetComponent <BoxBodyComponent>();
         this.transform = go.GetComponent <BoxTransformComponent>();
     }
     return(this);
 }