示例#1
0
 public void CycleToPreviousCrystal()
 {
     if (_crystalIndex == 0)
     {
         _crystalIndex = _crystalIDs.Count - 1;
     }
     else
     {
         _crystalIndex--;
     }
     SetCrystalColor();
     SwitchedWeaponEvent?.Invoke(this);
 }
示例#2
0
 public void CycleToNextCrystal()
 {
     _crystalIndex = (_crystalIndex + 1) % _crystalIDs.Count;
     SetCrystalColor();
     SwitchedWeaponEvent?.Invoke(this);
 }