mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-21 23:58:49 -05:00
Corrected docs/tutorials/mono-hooks.md to reference a Collider2D Event Reference Listener
updated screenshot to match
This commit is contained in:
parent
a41a7f4abe
commit
5df498b41e
Binary file not shown.
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 29 KiB |
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user