Beispiel #1
0
        private void Awake()
        {
            roomEvents = GetComponent <RoomEvents>();

            roomEvents.PlayerDiscardCardEvent += PlayerDiscardCardEventHandler;
            roomEvents.PlayerDrawCardEvent    += PlayerDrawCardEventHandler;
            roomEvents.PlayerAnonDrawEvent    += PlayerAnonDrawEventHandler;
        }
Beispiel #2
0
        private void SubscribeToRoomEvents()
        {
            RoomEvents roomEvents = GetComponent <RoomEvents>();

            roomEvents.PlayerDiscardCardEvent += PlayerDiscardCardEventHandler;
            roomEvents.PlayerDrawCardEvent    += PlayerDrawCardEventHandler;
            roomEvents.PlayerAnonDrawEvent    += PlayerAnonDrawEventHandler;
            roomEvents.PlayerJoinEvent        += PlayerJoinEventHandler;
            roomEvents.DeckDiscardCardEvent   += DeckDiscardCardEventHandler;
        }