1
This commit is contained in:
parent
d909066a76
commit
c7fff6a790
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user