void UpdateSlotLocation() { if (WeaponSubObject.Position.X > 0.95f) { SlotLocation = MySlotLocationEnum.RightSide; } else if (WeaponSubObject.Position.X < -0.95f) { SlotLocation = MySlotLocationEnum.LeftSide; } }
public bool IsSlotEligibleForLocation(MySlotLocationEnum slotLocation) { if (slotLocation == MySlotLocationEnum.None) { return true; } return slotLocation == this.SlotLocation; }