Ok So I have a basic Multiplayer game Between two First Person Players, With a Script for Guns that Deactivates With the other players camera, But When I have them Both Join, they Share a Camera For Some Reason. I Wrote this Script trying to fix that:
using UnityEngine;
using UnityEngine.Networking;
using UnityStandardAssets.Characters.FirstPerson;
public class LocalPlayer : NetworkBehaviour {
void Start () {
if (isLocalPlayer)
{
GetComponentInParent<FirstPersonController>().enabled = true;
GetComponent<Camera>().enabled = true;
GetComponentInChildren<shoot>().enabled = true;
}
}
}
This is Supposed to Fix the Problem, but it Doesn’t.