📅  最后修改于: 2022-03-11 15:01:35.100000             🧑  作者: Mango
if (this.x < subject.x + subject.width && this.x + this.width > subject.x && this.y < subject.y + subject.height && this.y + this.height > subject.y)
{
this.canFall = false;
} else
{
this.canFall = true;
}