Skip to content

Commit 5f29430

Browse files
committed
Remove error pile when Camera.current doesn't exist in Floor.cs
1 parent 7664efa commit 5f29430

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

TABGVR/Player/Floor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public class Floor : MonoBehaviour
99
{
1010
public void Update()
1111
{
12+
if (Camera.current is null) return;
1213
transform.position = Camera.current.transform.position - Controllers.Head.transform.position;
1314
}
1415
}

0 commit comments

Comments
 (0)