只有用脚踩到怪物,才会对怪物造成伤害
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Platformer.Gameplay
|
||||
|
||||
public override void Execute()
|
||||
{
|
||||
var willHurtEnemy = player.Bounds.center.y >= enemy.Bounds.max.y;
|
||||
var willHurtEnemy = player.Bounds.min.y >= enemy.Bounds.max.y;
|
||||
|
||||
if (willHurtEnemy)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user