fix bug anim npc monster

This commit is contained in:
VDH
2025-12-24 09:50:38 +07:00
parent 4b75e854f3
commit e5e3f35559
6 changed files with 258 additions and 58 deletions
@@ -144,5 +144,6 @@ namespace BrewMonster.Managers
+4 -1
View File
@@ -689,6 +689,9 @@ public class CECNPC : CECObject
}
public bool MovingTo(float deltaTime)
{
if (IsDisappearing())
return true;
bool bRet = false;
A3DVECTOR3 vCurPos = EC_Utility.ToA3DVECTOR3(transform.position);
@@ -713,7 +716,7 @@ public class CECNPC : CECObject
else
{
_characterController.enabled = false;
SetPos(EC_Utility.ToVector3(vPos));
SetPos(EC_Utility.ToVector3(exPPos));
_characterController.enabled = true;
FaceDirectionImmediate(EC_Utility.ToVector3(vPos));
}
@@ -175,3 +175,4 @@ namespace BrewMonster
@@ -173,3 +173,4 @@ namespace BrewMonster
@@ -112,3 +112,4 @@ namespace BrewMonster
File diff suppressed because one or more lines are too long