private void Awake() { roomEvents = GetComponent <RoomEvents>(); roomEvents.PlayerDiscardCardEvent += PlayerDiscardCardEventHandler; roomEvents.PlayerDrawCardEvent += PlayerDrawCardEventHandler; roomEvents.PlayerAnonDrawEvent += PlayerAnonDrawEventHandler; }
private void SubscribeToRoomEvents() { RoomEvents roomEvents = GetComponent <RoomEvents>(); roomEvents.PlayerDiscardCardEvent += PlayerDiscardCardEventHandler; roomEvents.PlayerDrawCardEvent += PlayerDrawCardEventHandler; roomEvents.PlayerAnonDrawEvent += PlayerAnonDrawEventHandler; roomEvents.PlayerJoinEvent += PlayerJoinEventHandler; roomEvents.DeckDiscardCardEvent += DeckDiscardCardEventHandler; }