Pink/Assets/Scripts/Events/PlayerHurt.cs

19 lines
394 B
C#
Raw Normal View History

2020-10-01 18:11:43 +01:00
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");
}
}
}
}