In most endless runner games you need a way to kill the player at some point. Whether it’s by falling in a pit, or hitting an obstacle or enemy. You can handle all of these using these simple scripts, and you’ll find examples of their uses in most demo levels.
This simple class detects collision with PlayableCharacters, and triggers the LevelManager’s KillCharacter method if it hits one.
The Watershark class is a specific class created to handle the enemies in the BackwardsDragon demo scene. It makes them explode when they hit the player.