Create an game logic like card games in unity

{Details}
hi i wanna create a game with nakama (online side)
and the game logic already created by unity and it cant make it with nakama cause its like complicated
there is any way to nakama matches use my unity logic?

  1. Versions: Nakama {3.5}, {Windows, Mac, Linux binary or Docker}, {client library (SDK) and version}
  2. Server Framework Runtime language (If relevant) {Go, TS/JS, Lua}
{code or log snippet}

:tv: Media:

While you can’t use Unity code directly in Nakama, you can use client-authoritative (sometimes called client relayed) matches if you wish your client’s to calculate and share match state with other connected players.

If you need your match logic to be performed on the server then you will need to implement this logic in an authoritative match handler in Nakama using either Go, TypeScript or Lua.

If you wish to use the same data representations on both the client and server, you can look into using a tool such as Protocol Buffers which will allow you to define your domain model once, and generate the appropriate structs for both your client and server.

As a side, when submitting a request here on the forum please fill in the bits between curly braces (e.g. {Go, TS/JS, Lua}) in the post template as it helps us identify what your project setup is and therefore can help us help you more efficiently.

thanks for ur help