private void CardMove(LilyAcolasia.CardDeck from, LilyAcolasia.CardDeck to, LilyAcolasia.Card card) { GameObject toObj = GameObject.Find(to.Name); DragUI ui = this.cards[card.Name].GetComponent <DragUI>(); ui.Move(toObj.transform); this.frameCounter = 0; this.currentGameState = GameState.CmdWait; if (to.Name == "Trash") { audioSource.clip = soundTrash; if (this.gameOperator.Round.Current.Status == LilyAcolasia.GameStatus.Status.WaitSpecialInput) { if (this.gameOperator.Round.Current.LastTrashed.Power == 1) { audioSource.clip = soundSkillLink; } else if (this.gameOperator.Round.Current.LastTrashed.Power == 7) { audioSource.clip = soundSkillSnipe; } } audioSource.Play(); } else if (from.Name == "Talon") { audioSource.clip = soundDraw; audioSource.Play(); } else if (to.Name.Contains("Field")) { audioSource.clip = soundDiscard; audioSource.Play(); } }
/// <summary> /// Initialize the player hand. /// </summary> /// <param name="trash">Trash.</param> public void Init(CardDeck trash) { this.hand.MoveAll(trash); }
/// <summary> /// Initialize the field. /// </summary> /// <param name="trash">Trash</param> public void Init(CardDeck trash) { this.win = -1; this.cardList[0].MoveAll(trash); this.cardList[1].MoveAll(trash); }
/// <summary> /// Constructor. /// </summary> /// <param name="name">Player's name.</param> public Player(string name, int turn) { this.name = name; this.hand = new CardDeck(turn == 0 ? Constants.DECK_PLAYER0 : Constants.DECK_PLAYER1); }