need help with syncing UI

[PunRPC]
IEnumerator SabotageCool(int counter)
{
sabotagedRec = true;
while (counter > 0)
{
SABOTAGE.color = new Color(1f, 1f, 1f, 0.4f);
text.text = counter.ToString();
Debug.Log(counter);
yield return new WaitForSeconds(1f);
counter--;
}
if (counter <= 1)
{
SABOTAGE.color = new Color(1f, 1f, 1f, 1f);
sabotagedRec = false;
text.text = " ";
StopCoroutine("SabotageCool");
}
}

the counter works, but the visual parts like sabotage.color or the text wont sync over. whats the problem?
here is the rpc command:

photonView.RPC("SabotageCool", readyNotReadyScript.TaggedPlayerNum, 10);
photonView.RPC("SabotageCool", readyNotReadyScript.TaggedPlayerNum2, 10);

i send it to both taggedplayers.
Sign In or Register to comment.