Changing time scale?
Options
I'd like to slow down time at the end of a round while showing the menu, as a cool effect. Does this have any effect on synchronization?
0
Answers
-
if you want to sync the slow motion with everyone then just create an empty game object and add a Photon View and create a script.
The script:
public float desiredTimeScale = 0.5f;
public PhotonView SlowMo;
void SlowMotion()
{
SlowMo.RPC("EnterSlowMotion", RPCTargets.AllBuffered);
}
[PunRPC]
private void EnterSlowMotion()
{
Time.timescale = desiredTimeScale ;
}
Then when the main menu is open just call the SlowMotion function.
Make sure that this script is added to the empty game object.0