mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-14 00:07:15 +00:00
remove unused code
This commit is contained in:
parent
881c42cd7a
commit
d7c6cc9c43
2 changed files with 2 additions and 37 deletions
|
@ -517,34 +517,6 @@ namespace SanAndreasUnity.Behaviours
|
|||
}
|
||||
}
|
||||
|
||||
public virtual AnimId GetAnimBasedOnMovement (bool canSprint)
|
||||
{
|
||||
Ped ped = m_ped;
|
||||
|
||||
if (ped.IsRunOn) {
|
||||
|
||||
return this.RunAnim;
|
||||
|
||||
} else if (ped.IsWalkOn) {
|
||||
|
||||
return this.WalkAnim;
|
||||
|
||||
} else if (ped.IsSprintOn) {
|
||||
|
||||
if (canSprint) {
|
||||
return new AnimId (AnimGroup.MyWalkCycle, AnimIndex.sprint_civi);
|
||||
} else {
|
||||
return this.IdleAnim;
|
||||
}
|
||||
|
||||
} else {
|
||||
// player is standing
|
||||
|
||||
return this.IdleAnim;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public virtual AnimId AimAnim {
|
||||
get {
|
||||
return new AnimId (AnimGroup.Rifle, AnimIndex.RIFLE_fire);
|
||||
|
@ -607,13 +579,6 @@ namespace SanAndreasUnity.Behaviours
|
|||
}
|
||||
|
||||
|
||||
// TODO: this function should be removed, and new one should be created: OnAnimsUpdated
|
||||
public virtual void UpdateAnimWhileHolding ()
|
||||
{
|
||||
Ped ped = m_ped;
|
||||
ped.PlayerModel.PlayAnim (this.GetAnimBasedOnMovement (this.CanSprintWithIt));
|
||||
}
|
||||
|
||||
void AssignGunFlashTransform()
|
||||
{
|
||||
this.GunFlash = this.transform.FindChildRecursive("gunflash");
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace SanAndreasUnity.Behaviours.Weapons
|
|||
}
|
||||
}
|
||||
|
||||
public override void UpdateAnimWhileHolding ()
|
||||
/*public override void UpdateAnimWhileHolding ()
|
||||
{
|
||||
Ped ped = m_ped;
|
||||
|
||||
|
@ -48,7 +48,7 @@ namespace SanAndreasUnity.Behaviours.Weapons
|
|||
} else {
|
||||
base.UpdateAnimWhileHolding ();
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue