示例#1
0
    private void resetCursorPosition(Player CurrentPlayer, GameCursor cursor, List <Card> currentPlayerHand)
    {
        int firstCardIndex = 0;

        CurrentPlayer.reorganizeHand();
        cursor.setCursorInCard(currentPlayerHand [firstCardIndex]);
        currentPlayerHand [firstCardIndex].transform.localPosition = new Vector3(currentPlayerHand [firstCardIndex].transform.localPosition.x - PLAYER.HAND_SPACE_OFFSET_X, currentPlayerHand [firstCardIndex].transform.localPosition.y);
    }
示例#2
0
 void Start()
 {
     isCardSelector    = true;
     isBoardSelector   = false;
     failed            = false;
     currentPlayerHand = CurrentPlayer.getHand();
     currentPlayerHand [pointedCardIndex].transform.localPosition = new Vector3(currentPlayerHand [pointedCardIndex].transform.localPosition.x - PLAYER.HAND_SPACE_OFFSET_X, currentPlayerHand [pointedCardIndex].transform.localPosition.y);
     cursor.setCursorInCard(currentPlayerHand [pointedCardIndex]);
     cursor.showCursor(true);
 }