Beispiel #1
0
 /// <summary>
 /// OnSourceLost Event Handler.
 /// </summary>
 public void OnSourceLost(SourceStateEventData eventData)
 {
     //Debug.Log("\n\n--> Removing OnSourceLost from: " + this.gameObject.name + " with id: " + eventData.SourceId.ToString() + "\n\n");
     RemoveSourceIdFromHandMap(eventData.SourceId);
     UpdateStateMachine();
     eventData.Use();
     CheckIfInputHanderShouldBeRemoved();
 }
Beispiel #2
0
 public void OnSourceLost(SourceStateEventData eventData)
 {
     if (eventData.SourceId == inputDownEventData.SourceId)
     {
         inputDownEventData = null;
         ResetRigHandles();
     }
     eventData.Use();
 }
Beispiel #3
0
    /// <summary>
    /// OnSourceLost
    /// </summary>
    public void OnSourceLost(SourceStateEventData eventData)
    {
        RemoveSourceIdFromHandMap(eventData.SourceId);
        UpdateStateMachine();
        eventData.Use();

        //移动棋子
        QiziScript qiziScrip = HostTransform.GetComponent <QiziScript>();
        PointData  start     = new PointData(qiziScrip.x, qiziScrip.y, qiziScrip.z);

        ChessManager.GetInstant().CheckAndMove(start, HostTransform.position);
    }
 /// <summary>
 /// OnSourceLost
 /// </summary>
 public void OnSourceLost(SourceStateEventData eventData)
 {
     RemoveSourceIdFromHandMap(eventData.SourceId);
     UpdateStateMachine();
     eventData.Use();
 }
 /// <inheritdoc />
 public void OnSourceLost(SourceStateEventData eventData)
 {
     gazeHandHelper.RemoveSource(eventData);
     UpdateStateMachine();
     eventData.Use();
 }
Beispiel #6
0
 public void OnSourceLost(SourceStateEventData eventData)
 {
     Debug.LogFormat("OnSourceLost\r\nSource: {0}  SourceId: {1}", eventData.InputSource, eventData.SourceId);
     eventData.Use(); // Mark the event as used, so it doesn't fall through to other handlers.
 }
 public void OnSourceDetected(SourceStateEventData eventData)
 {
     eventData.Use();
 }