This commit is contained in:
aozhiwei 2024-07-30 09:22:36 +08:00
parent d909066a76
commit c7fff6a790

View File

@ -2,6 +2,8 @@
#include "boxdrop.h"
#include "room.h"
#include "hero.h"
#include "obstacle.h"
const int BOX_ID = 150001;
@ -22,12 +24,12 @@ void BoxDrop::UnInit()
void BoxDrop::OnHeroDeadDrop(Hero* hero)
{
Drop(1, hero->GetPos().ToGlmVec3());
}
void BoxDrop::OnObstacleDeadDrop(Obstacle* ob)
{
Drop(1, ob->GetPos().ToGlmVec3());
}
void BoxDrop::Drop(int num, const glm::vec3& center)