Esempio n. 1
0
 private void GetTouchInputs()
 {
     if (tInput.isDragging)
     {
         if (GetMoveToSpace() != null)
         {
             NextSpace = GetMoveToSpace();
             if (tInput.CheckDeadzone3D())
             {
                 goalSpace       = NextSpace;
                 nextMoveChoosen = true;
             }
             else
             {
                 goalSpace = currentSpace;
             }
         }
         if (nextMoveChoosen)
         {
             Debug.DrawLine(currentSpace.GetPositionInWorldCoord(), goalSpace.GetPositionInWorldCoord(), Color.red); // temp Telegraph move selection
         }
     }
 }