public bool Validate(StatChangeData data) //sender / receiver { if (_buffCheck != null) { if (!_buffCheck(data)) { return(false); } } return(data.receiver.IsAlive); }
public void Apply(StatChangeData data) //data contains the unit as well as the other info { _apply(data); //this just calls the lamda from the action that is passed in, with data. }