public void RemoveShipSpawnMiddleware(ShipSpawnMiddleware shipSpawnMiddleware) { shipSpawnMiddlewares.Remove(shipSpawnMiddleware); }
/*private abstract class MiddleWareList<T> * { * private List<T> collection = new List<T>(); * public abstract void Execute(); * } * * private class ShipMiddleWareList : MiddleWareList<ShipSpawnMiddleware> * { * public override void Execute() * { * * } * }*/ public void AddShipSpawnMiddleware(ShipSpawnMiddleware shipSpawnMiddleware) { shipSpawnMiddlewares.Add(shipSpawnMiddleware); }