public void Construct(IDefensiveStats stats, GameplayEventInt healthChangeEvent, int startingHealth, DeathComponent deathComponent) { _stats = stats; _healthChangeEvent = healthChangeEvent; SetHealth(startingHealth); _deathComponent = deathComponent; }
public override void OnInspectorGUI() { base.OnInspectorGUI(); GUI.enabled = Application.isPlaying; GameplayEventInt e = target as GameplayEventInt; if (GUILayout.Button("Trigger Event")) { e.TriggerEvent(1, 0); } }