internal void AddSemaphoreTracking() { Semaphore = new SemaphoreViewModel(); Semaphore.PropertyChanged += SemaphorePropertyChanged; _semaphoreGesture = _user.AddSemaphoreTouchGesture(); _semaphoreGesture.SemafoorDetected += _semaphoreGesture_SemafoorDetected; }
internal void RemoveSemaphoreTracking() { _semaphoreGesture.SemafoorDetected -= _semaphoreGesture_SemafoorDetected; //TODO Remove Semaphore gesture logic //_user.RemoveSemaphoreTouchGesture(); _semaphoreGesture = null; Semaphore = null; }
public bool ReceiveGesture(SemaphoreGesture sg) { if (sg.Equals(flagsRequired[0])) { ResolveGesture(); } return(solved); }
/* * Gesture Recog */ private void RecalculateCurrentGesture() { if (currLeftHandPostion != null && currRightHandPostion != null) { currentGesture = new SemaphoreGesture(currLeftHandPostion, currRightHandPostion); } Debug.Log("New player pose ::: [Left: " + currLeftHandPostion + "], [Right: " + currRightHandPostion + "]"); BroadcastGesture(); }
public bool Equals(SemaphoreGesture sg) { if (sg.left == this.left && sg.right == this.right) { return(true); } else { return(false); } }