When i connect to my server I controll the other player and the other player controll me Help Please.
The code of player:
function Start () {
if (!networkView.isMine) {
GetComponent(CharacterController).enabled = false;
}
if (networkView.isMine) {
GetComponent(CharacterController).enabled = true;
}
and the camera:
function Start () {
if(!networkView.isMine) {
GetComponent(AudioListener).enabled = false;
GetComponent(Camera).enabled = false;
}
}