Import 2D Level
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using Platformer.Core;
|
||||
using Platformer.Mechanics;
|
||||
using Platformer.Model;
|
||||
|
||||
namespace Platformer.Gameplay
|
||||
{
|
||||
/// <summary>
|
||||
/// Fired when a player enters a trigger with a DeathZone component.
|
||||
/// </summary>
|
||||
/// <typeparam name="PlayerEnteredDeathZone"></typeparam>
|
||||
public class PlayerEnteredDeathZone : Simulation.Event<PlayerEnteredDeathZone>
|
||||
{
|
||||
public DeathZone deathzone;
|
||||
|
||||
PlatformerModel model = Simulation.GetModel<PlatformerModel>();
|
||||
|
||||
public override void Execute()
|
||||
{
|
||||
Simulation.Schedule<PlayerDeath>(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user