SanAndreasUnity/Assets/Scripts/Behaviours/Weapons/Shotgun.cs
2020-05-31 19:07:22 +02:00

21 lines
418 B
C#

using UnityEngine;
using SanAndreasUnity.Importing.Animation;
namespace SanAndreasUnity.Behaviours.Weapons
{
public class Shotgun : Weapon
{
public override AnimId AimAnim {
get {
if (this.Data.gunData.AssocGroupId.EndsWith ("bad"))
return new AnimId (AnimGroup.Shotgun, AnimIndex.shotgun_fire_poor);
else
return new AnimId (AnimGroup.Shotgun, AnimIndex.shotgun_fire);
}
}
}
}