Esempio n. 1
0
    private void StartSwipe(TouchEvent touchEvent)
    {
        Vector3 lookPosition;

        if (TouchUtils.TouchPositionToWorldCoords(touchEvent.GetEndPosition(), out lookPosition, 0.5f))
        {
            swipeStarted = true;
            hero.CancelMoveToTarget();
            hero.LookAt(lookPosition, attackTime);
            hero.StartSwipeAttack();
        }
    }