This commit is contained in:
SergoDobro 2024-08-19 19:29:24 +03:00
parent bfda449911
commit baf0c9f093

View file

@ -28,7 +28,7 @@ namespace ZoFo.GameCore.GameObjects
isAttacking = false; isAttacking = false;
StartAnimation("zombie_walk"); StartAnimation("zombie_walk");
collisionComponent.isTrigger = true; collisionComponent.isTrigger = true;
collisionComponent.hasCollision = false; collisionComponent.hasCollision = true;
(graphicsComponent as AnimatedGraphicsComponent).actionOfAnimationEnd += EndAttack; (graphicsComponent as AnimatedGraphicsComponent).actionOfAnimationEnd += EndAttack;
collisionComponent.OnTriggerZone += OnPlayerClose; collisionComponent.OnTriggerZone += OnPlayerClose;
collisionComponent.triggerRectangle = new Rectangle(-5, -5, 40, 40); collisionComponent.triggerRectangle = new Rectangle(-5, -5, 40, 40);