public InterruptData this[EInterruptType type] { get { switch (type) { case EInterruptType.GunSight: return(InterruptGunSightWeapon); case EInterruptType.HoldWeapon: return(InterruptHoldWeapon); default: return(InterruptPullboltWeapon); } } set { switch (type) { case EInterruptType.GunSight: InterruptGunSightWeapon = value; break; case EInterruptType.HoldWeapon: InterruptHoldWeapon = value; break; case EInterruptType.Pullbolt: InterruptPullboltWeapon = value; break; } } }
public bool IsInterrupted(EInterruptType interruptType) { return(interruptHandlers[(int)interruptType].IsInterrupted()); }
public bool IsInterrupted(EInterruptType interruptType) { return(stateInterrupter.IsInterrupted(interruptType)); }