Question by
epameinondaspanos · Apr 26 at 01:03 PM ·
photonnot workingintsynchronizationpun
Synchronize an INT through Photon Pun2
[PunRPC]
private void Sink()
{
safe = Random.Range(0, 6);
}
void CallSetting()
{
PhotonView PV = GetComponent<PhotonView>();
PV.RPC("Sink", RpcTarget.All, safe);
}
private void Update()
{
CallSetting();
}
For some reason, although I think I have coded this correctly the value for safe isnt being synchronized to all clients. I would really appreciate if someone could help me find out the problem.
Also I am getting this error RPC method Sink found on object with PhotonView 1 but has wrong parameters. Implement as Sink(int32). PhotonMessageInfo is optional as final parameter. Return type must be void or IEnumerator (if you enable RunRpcCoroutines)
Comment