public override void ResolveCollision(MovableCollisionResponse other) { if (other.entity.GetComponent <BlockMovement>() != null) { } else { var transform = entity.GetComponent <Transform>(); transform.position = transform.lastPosition; } }
public override void ResolveCollision(MovableCollisionResponse other) { var transform = entity.GetComponent <Transform>(); transform.position = transform.lastPosition; }