Import 2D Level
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using Platformer.Core;
|
||||
using Platformer.Model;
|
||||
|
||||
namespace Platformer.Gameplay
|
||||
{
|
||||
/// <summary>
|
||||
/// This event is fired when user input should be enabled.
|
||||
/// </summary>
|
||||
public class EnablePlayerInput : Simulation.Event<EnablePlayerInput>
|
||||
{
|
||||
PlatformerModel model = Simulation.GetModel<PlatformerModel>();
|
||||
|
||||
public override void Execute()
|
||||
{
|
||||
var player = model.player;
|
||||
player.controlEnabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user