I'm trying to sync a flashlight state (On/Off) on every client.
If I do it with a command, only the host client sees the light, and I don't really know what to do.
I tried to do it with my MovementSync script, that is working, but each client only sees his own light.
I'm pretty sure it's super wrong, but here is my MovementSync script transformed in lightSync:
using UnityEngine;
using System.Collections;
using UnityEngine.Networking;
publicclassFlashlight:NetworkBehaviour{...
Sync Flashlight on every Client
If I do it with a command, only the host client sees the light, and I don't really know what to do.
I tried to do it with my MovementSync script, that is working, but each client only sees his own light.
I'm pretty sure it's super wrong, but here is my MovementSync script transformed in lightSync:
using UnityEngine;
using System.Collections;
using UnityEngine.Networking;
publicclassFlashlight:NetworkBehaviour{...
Sync Flashlight on every Client