Example #1
0
 private static void AddFunction(Target target, ConditionalFunction func)
 {
     TargetFunctionManager.conditionalFunctions.Add(target, NotEmptyTarget(func));
 }
Example #2
0
 // Wraps a conditional function with a check that makes it return false if there is no target
 private static ConditionalFunction NotEmptyTarget(ConditionalFunction func)
 {
     return((myself, target) => target != null && func(myself, target));
 }