Dialog fixing
This commit is contained in:
1 parent
8c200974c2
commit
84c8a7a27a
13 files changed
+169
-43
No files matched your search
+13
-5
@@ -104,6 +104,19 @@ void Character::stopInPlace()
|
||||
onArrivedCallback = nullptr;
|
||||
}
|
||||
|
||||
void Character::resetPlayerAfterDeath()
|
||||
{
|
||||
if (!isPlayer)
|
||||
{
|
||||
return;
|
||||
}
|
||||
currentState = AnimationState::STAND;
|
||||
resetAnim = true;
|
||||
showWeapon = false;
|
||||
battle_state = 0;
|
||||
attack = 0;
|
||||
}
|
||||
|
||||
void Character::forceReplan()
|
||||
{
|
||||
if (!pathPlanner) {
|
||||
@@ -456,11 +469,6 @@ void Character::update(int64_t deltaMs) {
|
||||
//onDeathAnimComplete = nullptr;
|
||||
onDeathAnimComplete();
|
||||
//TODO: need to add some delay here
|
||||
currentState = AnimationState::STAND;
|
||||
resetAnim = true;
|
||||
showWeapon = false;
|
||||
battle_state = 0;
|
||||
attack = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user