示例#1
0
        public void OnMove(int toX, int toY)
        {
            CollideResult result = CheckForCollision(toX, toY);

            if (result.Collision)
            {
                Collidable.OnCollide(result);
            }
            else
            {
                Collidable.OnNoneCollide(toX, toY);
            }
        }