mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-16 21:08:28 +00:00
play passenger anim every frame
This commit is contained in:
parent
b467859ce5
commit
30b1176ee7
1 changed files with 12 additions and 7 deletions
|
@ -68,8 +68,13 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
return;
|
||||
|
||||
var seat = this.CurrentVehicleSeat;
|
||||
if (seat != null && seat.IsDriver)
|
||||
this.UpdateWheelTurning ();
|
||||
if (seat != null)
|
||||
{
|
||||
if (seat.IsDriver)
|
||||
this.UpdateWheelTurning ();
|
||||
else
|
||||
this.UpdateAnimsWhilePassenger();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -90,11 +95,11 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
|
||||
protected virtual void UpdateAnimsWhilePassenger()
|
||||
{
|
||||
if (this.CurrentVehicleSeat.IsDriver)
|
||||
{
|
||||
m_model.PlayAnim(AnimGroup.Car, AnimIndex.Sit, PlayMode.StopAll);
|
||||
}
|
||||
else
|
||||
// if (this.CurrentVehicleSeat.IsDriver)
|
||||
// {
|
||||
// m_model.PlayAnim(AnimGroup.Car, AnimIndex.Sit, PlayMode.StopAll);
|
||||
// }
|
||||
// else
|
||||
{
|
||||
m_model.PlayAnim(AnimGroup.Car, AnimIndex.SitPassenger, PlayMode.StopAll);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue