Corrected docs/tutorials/mono-hooks.md to reference a Collider2D Event Reference Listener

updated screenshot to match
This commit is contained in:
davient 2022-05-13 11:14:34 +01:00 committed by Miika Lönnqvist
parent a41a7f4abe
commit 5df498b41e
2 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 29 KiB

View File

@ -13,7 +13,7 @@ A great use for Mono Hooks in our example would allow us to remove the `Harmful.
![mono-hooks-trigger-2d](../assets/mono-hooks/trigger-2d.png)
We could then create a Collider2DAction called `DecreasePlayersHealth.cs` and add it to a Collider2D Listener attached to the Harmful GameObject:
We could then create a Collider2DAction called `DecreasePlayersHealth.cs` and add it to a Collider2D Event Reference Listener attached to the Harmful GameObject:
```cs
public class DecreasePlayersHealth : Collider2DAction