[quote author=francoe1" data-ipsquote-contapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentclass="forums_Topic" data-ipsquote-contentid="35768" data-ipsquote-contentcommentid="130394">
Solucionado. Dejo la solución por si acaso alguien lo necesita.using UnityEngine;Gracias!
using System.Collections;
using UnityEngine.Networking;
public class cambiodecamaras : NetworkBehaviour {
public GameObject camara1;
public GameObject camara2;
public GameObject jugador;
void Start () {
}
// Update is called once per frame
void Update () {
if (jugador.GetComponent<NetworkIdentity> ().isLocalPlayer) {
if (camara1.activeSelf == false && camara2.activeSelf == false) {
camara1.SetActive (true);
}
if (Input.GetKeyUp (KeyCode.C)) {
if (camara1.activeSelf == true) {
camara1.SetActive (false);
camara2.SetActive (true);
} else {
camara1.SetActive (true);
camara2.SetActive (false);
}
}
}
}
}