MouseLook cameraScript;
CharacterMotor controllerScript;
FPSInputController controllerScript2;
CharacterController charControl;
GameObject cam;
public void Awake()
{
cameraScript = GetComponent<MouseLook>();
controllerScript = GetComponent<CharacterMotor>();
controllerScript2 = GetComponent<FPSInputController>();
charControl = GetComponent<CharacterController>();
}
public void Start()
{
if (photonView.isMine)
{
cameraScript.enabled = true;
controllerScript.enabled = true;
controllerScript2.enabled = true;
charControl.enabled = true;
}
else
{
enabled = true;
cameraScript.enabled = true;
controllerScript.enabled = true;
controllerScript2.enabled = true;
charControl.enabled = true;
}