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

            return slotLocation == this.SlotLocation;
        }