Finish Puzzle C

This commit is contained in:
2022-12-01 15:13:00 +01:00
parent ae3c6a50f5
commit 26602d3dbc
79 changed files with 4041 additions and 124 deletions

View File

@@ -27,15 +27,10 @@ namespace EscapeRoomEngine.Portal.Runtime
/// </summary>
[HideInInspector] public PortalDriverClone clone;
private Collider _collider;
private Rigidbody _rigidbody;
private void Awake()
{
// check whether the collider is set up correctly
_collider = GetComponent<Collider>();
if (_collider.isTrigger) throw new Exception("Collider must not be a trigger.");
// check whether the traveller is set
if (!traveller) traveller = transform;