コード例 #1
0
 public Trigger SetMainToSlotOne()
 {
     if (ActiveMainTriggerIndex != 0)
     {
         ActiveMainTrigger.Unequip();
         ActiveMainTriggerIndex = 0;
         ActiveMainTrigger      = MainTrigger[ActiveMainTriggerIndex];
         ActiveMainTrigger.Equip();
     }
     return(ActiveMainTrigger);
 }
コード例 #2
0
 public Trigger SetMainToSlotTwo()
 {
     if (ActiveMainTriggerIndex != 1)
     {
         ActiveMainTrigger.Unequip();
         ActiveMainTriggerIndex = 1;
         ActiveMainTrigger      = MainTrigger[ActiveMainTriggerIndex];
         ActiveMainTrigger.Equip();
     }
     return(ActiveMainTrigger);
 }
コード例 #3
0
 public Trigger SetMainToSlotFour()
 {
     if (ActiveMainTriggerIndex != 3)
     {
         ActiveMainTrigger.Unequip();
         ActiveMainTriggerIndex = 3;
         ActiveMainTrigger      = MainTrigger[ActiveMainTriggerIndex];
         ActiveMainTrigger.Equip();
     }
     return(ActiveMainTrigger);
 }
コード例 #4
0
 public Trigger SetMainToSlotThree()
 {
     if (ActiveMainTriggerIndex != 2)
     {
         ActiveMainTrigger.Unequip();
         ActiveMainTriggerIndex = 2;
         ActiveMainTrigger      = MainTrigger[ActiveMainTriggerIndex];
         ActiveMainTrigger.Equip();
     }
     return(ActiveMainTrigger);
 }
コード例 #5
0
 public Trigger ToggleLeftMainTrigger()
 {
     ActiveMainTrigger.Unequip();
     ActiveMainTriggerIndex--;
     if (ActiveMainTriggerIndex == -1)
     {
         ActiveMainTriggerIndex = 3;
     }
     ActiveMainTrigger = MainTrigger[ActiveMainTriggerIndex];
     ActiveMainTrigger.Equip();
     return(ActiveMainTrigger);
 }
コード例 #6
0
 // Main Trigger Functions
 public Trigger ToggleRightMainTrigger()
 {
     ActiveMainTrigger.Unequip();
     ActiveMainTriggerIndex++;
     if (ActiveMainTriggerIndex == 4)
     {
         ActiveMainTriggerIndex = 0;
     }
     ActiveMainTrigger = MainTrigger[ActiveMainTriggerIndex];
     ActiveMainTrigger.Equip();
     return(ActiveMainTrigger);
 }
コード例 #7
0
 public void EquipCurrentMain()
 {
     ActiveMainTrigger.Equip();
 }