示例#1
0
 protected void HandleGlobalEvent(GlobalEvent globalEvent, RangeSegmentStatus eventQuality = RangeSegmentStatus.Nominal)
 {
     Debug.Log("global event occurred: " + globalEvent.ToString());
     if (ScoringEventOccurred != null)
     {
         var args = new GlobalEventArgs()
         {
             Event = globalEvent
         };
         ScoringEventOccurred(this, args);
     }
 }
示例#2
0
    private void LockInButton_Interacted(object sender, InputActionEventArgs e)
    {
        if (isLockedIn || isInCooldown)
        {
            return;
        }

        isLockedIn = true;
        EffectStengthIndicator.TrueValue = EffectStengthIndicator.CurrentValue;
        lockedInEffect         = EffectStengthIndicator.CurrentStatus;
        LockedInRedLED.isOn    = lockedInEffect == RangeSegmentStatus.Critical;
        LockedInYellowLED.isOn = lockedInEffect == RangeSegmentStatus.Warning;
        LockedInGreenLED.isOn  = lockedInEffect == RangeSegmentStatus.Nominal;

        numCharges = 3;
    }