Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
 public void RemoveCard(int cardRecordID)
 {
     cardRecordIDs.Remove(cardRecordID);
     OnCardsChanged?.Invoke(this, cardRecordID, DataChangeCode.Remove);
 }
Esempio n. 4
0
 public void AddCard(int cardRecordID)
 {
     cardRecordIDs.Add(cardRecordID);
     OnCardsChanged?.Invoke(this, cardRecordID, DataChangeCode.Add);
 }
Esempio n. 5
0
 public void InvokeChange()
 {
     OnCardsChanged?.Invoke();
 }