- Home /
Question by
ZozeR · Jul 08, 2020 at 08:09 PM ·
c#2dmultiplayerphotonturn-based
How to add Turn Based to Photon Pun
I have a simple game where you throw objects to each other. it has a multiplayer that works without any problem with the photon. However, I need to add turns. Is there anything that can help me?
Is it possible to get a reference to the current photon object and call in Getcomponent and get their own script to turn on a bool? So that they will only move when that bool is true? I tried using PhotonNetwork.localPlayer but it doesn't reference it as a GameObject.
Comment
Answer by GetLitGames · Jul 09, 2020 at 04:59 AM
You need to write your own script and make a custom property https://doc.photonengine.com/en-us/pun/v2/gameplay/synchronization-and-state