19 lines
479 B
C#
19 lines
479 B
C#
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;
|
|
}
|
|
}
|
|
} |