コード例 #1
0
 public bool Validate(StatChangeData data)           //sender / receiver
 {
     if (_buffCheck != null)
     {
         if (!_buffCheck(data))
         {
             return(false);
         }
     }
     return(data.receiver.IsAlive);
 }
コード例 #2
0
 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.
 }