using Platformer.Core;
using Platformer.Mechanics;
using Platformer.Model;
namespace Platformer.Gameplay
{
///
/// This event is triggered when the player character enters a trigger with a VictoryZone component.
///
///
public class PlayerEnteredVictoryZone : Simulation.Event
{
public VictoryZone victoryZone;
PlatformerModel model = Simulation.GetModel();
public override void Execute()
{
model.player.animator.SetTrigger("victory");
model.player.controlEnabled = false;
}
}
}