These stalagmites (or spikes) are a very simple addition to the dungeon, they act as an obstacle for the player to avoid when defeating enemies, if they were to touch the stalagmite they would then take one hit of damage

As these obstacles are very simple, they also have a simple script attached to them. Firstly, they have two colliders attached to them, a smaller Collider2D component that prevents the player from walking through them, and a second larger Collider2D component set to trigger, that checks if the player collides with it. If the player does collider with the larger collider, they then call the TakeDamage(damage) method on the player’s PlayerHealth script and cause it to take one instance of one damage point.