SanAndreasUnity/Assets/Scripts/Behaviours/Weapons/Shotgun.cs

22 lines
418 B
C#
Raw Normal View History

2020-05-31 17:07:22 +00:00
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);
}
}
}
}