Pink/Assets/Scripts/Events/PlayerHurt.cs
2020-10-01 18:11:43 +01:00

19 lines
394 B
C#

using Pink.Environment;
using UnityEngine;
namespace Pink.Events
{
class PlayerHurt : Simulation.Event<PlayerHurt>
{
EnvironmentModel state = Simulation.GetModel<EnvironmentModel>();
public override void Execute()
{
if (state.player.health.IsAlive)
{
Debug.Log("Player Hurt");
}
}
}
}