Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiplayer_Photon::getHostID() #1243

Open
comefrombottom opened this issue Jul 5, 2024 · 0 comments
Open

Multiplayer_Photon::getHostID() #1243

comefrombottom opened this issue Jul 5, 2024 · 0 comments

Comments

@comefrombottom
Copy link
Member

追加する機能の内容 | Describe the solution you'd like
Multiplayer_Photon::getHostID()
同ルーム内のhostのLocalPlayerIDを返す。

その機能の追加によって解決する問題 | Is your feature request related to a problem? Please describe.
ルーム内の同オブジェクトに複数プレイヤーが関与する際、競合が発生しないようにホストにデータ変更のリクエストを送り、ホストがデータ変更をするのがおそらく良いやり方だが、ホストのidを取得するにはplayerリストを回さなければならず、面倒くさい。

備考 | Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant