mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-03-05 07:37:17 +00:00
rename methods
This commit is contained in:
parent
257645ba7f
commit
6ffaf6a552
1 changed files with 6 additions and 6 deletions
|
@ -70,8 +70,8 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
BaseVehicleState.PreparePedForVehicle(m_ped, vehicle, seat);
|
||||
|
||||
// save root frame position
|
||||
|
||||
this.UpdateWheelTurning(); // play driver anim
|
||||
|
||||
this.UpdateDriverAnim(); // play driver anim
|
||||
m_model.AnimComponent.Sample(); // sample it
|
||||
if (m_model.RootFrame != null)
|
||||
m_rootFramePos = m_model.RootFrame.transform.localPosition; // save root frame position
|
||||
|
@ -109,13 +109,13 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
if (seat != null)
|
||||
{
|
||||
if (seat.IsDriver)
|
||||
this.UpdateWheelTurning ();
|
||||
this.UpdateDriverAnim ();
|
||||
else
|
||||
this.UpdateAnimsWhilePassenger();
|
||||
this.UpdatePassengerAnim();
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void UpdateWheelTurning()
|
||||
protected virtual void UpdateDriverAnim()
|
||||
{
|
||||
|
||||
m_model.VehicleParentOffset = Vector3.zero;
|
||||
|
@ -130,7 +130,7 @@ namespace SanAndreasUnity.Behaviours.Peds.States
|
|||
|
||||
}
|
||||
|
||||
protected virtual void UpdateAnimsWhilePassenger()
|
||||
protected virtual void UpdatePassengerAnim()
|
||||
{
|
||||
// if (this.CurrentVehicleSeat.IsDriver)
|
||||
// {
|
||||
|
|
Loading…
Add table
Reference in a new issue