N
N
Nikita Pakhomov2021-12-09 22:13:14
C++ / C#
Nikita Pakhomov, 2021-12-09 22:13:14

How to store variable in c#(unity) network?

There is a task to store a variable in the network, and update it when an event occurs in the game. Other players can read it at any time. Can you tell me how this can be done?
Ps found the possibility of using a photon, but how to transfer only a variable is not clear

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-12-09
@vabka

You make some kind of web with some kind of storage.
The client in the face of the game will somehow connect to it and somehow read it.
Somehow, some events must also be generated, about which the server must somehow learn and somehow change this "variable"
PS: Abstract question = abstract answer.
PPS: I looked at your previous questions: since you are already familiar with Flask, why not make an apish and some kind of database on it?
And on the side of the unit, make requests through HttpClient

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question