public static TargetingStrategy GetFromPool() { TargetingStrategy FreeStrategy = null; bool b = FreeStrategyPool.TryPop(out FreeStrategy); if (!b) { FreeStrategy = ActiveStrategy.Clone(); } return(FreeStrategy); }
public static AssignmentStrategy GetFromPool() { AssignmentStrategy FreeStrategy = null; bool b = FreeStrategyPool.TryPop(out FreeStrategy); if (!b) { FreeStrategy = ActiveStrategy.Clone(); } return(FreeStrategy); }