Browse Source

Fix odd formatting on triggers tutorial page.

Robin Hübner 6 years ago
parent
commit
a54e38a950
1 changed files with 4 additions and 2 deletions
  1. 4 2
      en/manual/physics/triggers.md

+ 4 - 2
en/manual/physics/triggers.md

@@ -24,9 +24,11 @@ You can see when something enters the trigger using the following code:
 
 
 ```cs
 ```cs
 // Wait for an entity to collide with the trigger
 // Wait for an entity to collide with the trigger
-                var firstCollision = await trigger.NewCollision();
+var firstCollision = await trigger.NewCollision();
 
 
-                var otherCollider = trigger == firstCollision.ColliderA ? firstCollision.ColliderB : firstCollision.ColliderA;
+var otherCollider = trigger == firstCollision.ColliderA
+    ? firstCollision.ColliderB
+    : firstCollision.ColliderA;
 ```
 ```
 
 
 Alternatively, directly access the `TrackingHashSet`:
 Alternatively, directly access the `TrackingHashSet`: