I’m trying to make restraints disappear for everyone in the game at the same time. It works for 1 person but if another person join it waits the time and then disappears. I want them to disappear at the same time.
My code:
var interval : float = 1.0f;
var stop : float = 1000000000000.0f;
function Start() { InvokeRepeating(“Toggle”, interval, stop); }
function Toggle() { gameObject.active = !gameObject.active; }