- Home /
Question by
AtomUniverse · Jan 15 at 07:59 PM ·
c#particlesystemonlinemirrorsync
hi i have a problem with sync my particle system with mirror to the other players(only host gets the system wotking)
I'm working on a online tank strategy game and i have a particle system that should be activated when the tank has 0 HP now only the host get the explosion's but the client doesn't any ideas pls?
heres the code: [Server] private void DeathHandler() { foreach (ParticleSystem partical in Explotion) { partical.Play(); } StartCoroutine(destroy()); } [Server] IEnumerator destroy() { yield return new WaitForSeconds(1f); NetworkServer.Destroy(gameObject); }
Comment