Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Platformer.Core;
- using Platformer.Mechanics;
- using static Platformer.Core.Simulation;
- namespace Platformer.Gameplay
- {
- /// <summary>
- /// Fired when the player health reaches 0. This usually would result in a
- /// PlayerDeath event.
- /// </summary>
- /// <typeparam name="HealthIsZero"></typeparam>
- public class HealthIsZero : Simulation.Event<HealthIsZero>
- {
- public Health health;
- public override void Execute()
- {
- Schedule<PlayerDeath>();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment