Hi!
So I have a script that enables and disables a line renderer (to show a laser shooting). However when Player 1 shoots Player 2 doesn't see it. Obviously I am not syncing the enable state of the line renderer. What is the best way to do this? Thank you!
In case you're wondering how I'm enabling the laser:
How to sync state of gameobject in the Unity uNet Multiplayer system?
So I have a script that enables and disables a line renderer (to show a laser shooting). However when Player 1 shoots Player 2 doesn't see it. Obviously I am not syncing the enable state of the line renderer. What is the best way to do this? Thank you!
In case you're wondering how I'm enabling the laser:
Code (CSharp):
- using UnityEngine;
- using System.Collections;
- using UnityEngine.Networking;
- public class MissileButton : NetworkBehaviour {
- [SerializeField]