protected override void Update()
 {
     base.Update();
     if (FinchVR.WasCalibratedRight && FinchVR.WasCalibratedLeft)
     {
         FinchEvent.Invoke();
     }
 }
示例#2
0
    protected override void Update()
    {
        base.Update();
        if ((ButtonEventType == FinchButtonEventType.Left || ButtonEventType == FinchButtonEventType.Any) && FinchVR.WasCalibratedLeft)
        {
            FinchEvent.Invoke();
        }

        if ((ButtonEventType == FinchButtonEventType.Right || ButtonEventType == FinchButtonEventType.Any) && FinchVR.WasCalibratedRight)
        {
            FinchEvent.Invoke();
        }
    }