Ejemplo n.º 1
0
        public static CollisionHandler Create(ValueKeeper <int> keeper, int duration)
        {
            handler = CollisionHandler.Create();

            handler.Left            =
                handler.Right       =
                    handler.Bot     =
                        handler.Top = (source, target) => Bot(keeper, target, duration);

            return(handler);
        }
Ejemplo n.º 2
0
        public static CollisionHandler Create()
        {
            handler = CollisionHandler.Create();

            handler.Left  = Left;
            handler.Right = Right;
            handler.Bot   = Bot;
            handler.Top   = Top;

            return(handler);
        }