Merge remote-tracking branch 'origin/developer' into feature/weaponCollision
Added waeponswitch to backbutton of controller # Conflicts: # Enemy.cpp # Player.cpp # Weapon.cpp # Weapon.h
This commit is contained in:
@@ -35,11 +35,10 @@ Enemy::Enemy(const std::string &fileName,
|
||||
|
||||
Enemy::~Enemy()
|
||||
{
|
||||
|
||||
music->Stop();
|
||||
CrystalPoint::GetSoundSystem().UnloadSound(hit_sound_id);
|
||||
if (model)
|
||||
Model::unload(model);
|
||||
|
||||
CrystalPoint::GetSoundSystem().UnloadSound(hit_sound_id);
|
||||
}
|
||||
|
||||
void Enemy::draw()
|
||||
@@ -123,13 +122,7 @@ void Enemy::update(float delta)
|
||||
else
|
||||
{
|
||||
attack = true;
|
||||
if (music->IsPlaying() == true)
|
||||
{
|
||||
// music->Pause();
|
||||
music->Stop();
|
||||
}
|
||||
}
|
||||
|
||||
rotation.y = atan2f(dx, dz) * 180 / M_PI;
|
||||
}
|
||||
Player *player = Player::getInstance();
|
||||
|
||||
Reference in New Issue
Block a user