public override void DeactivateGameObjectsOnClient(RpcArgs args) { for (int i = 0; i < cards.Count; i++) { string word = "~HideCard~"; OnCardsChanged e = EventManagerClient.onCardsChangedList[i]; e.Invoke(word); } }
public override void SendCardWordsToClient(RpcArgs args) { string card_words = args.GetNext <string>(); Debug.Log("Card Words: " + card_words); string[] cardList = card_words.Split(','); cards = new List <string>(cardList); for (int i = 0; i < cards.Count; i++) { string word = cards[i]; OnCardsChanged e = EventManagerClient.onCardsChangedList[i]; e.Invoke(word); } }
public void RemoveCard(int cardRecordID) { cardRecordIDs.Remove(cardRecordID); OnCardsChanged?.Invoke(this, cardRecordID, DataChangeCode.Remove); }
public void AddCard(int cardRecordID) { cardRecordIDs.Add(cardRecordID); OnCardsChanged?.Invoke(this, cardRecordID, DataChangeCode.Add); }
public void InvokeChange() { OnCardsChanged?.Invoke(); }