Example #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);
        }
Example #2
0
        public static CollisionHandler Create()
        {
            handler = CollisionHandler.Create();

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

            return(handler);
        }