- Home /
Question by
Thebawsman1 · Mar 30, 2014 at 05:50 AM ·
Problem controller and Photon networking
I am making an online FPS using Photon Unity Networking. I'm following a tutorial on YouTube and I wrote the script exactly as he did. Its supposed to make it so that when your online with other players, they each have their own controls so that everybody can move around, and look without having one player controlling them all. Does that make sense? On the tutorial, the guy uses the script and it works. He tests it by Building and running while also pressing "Play", making it so that two people connect to one server. The script works perfectly for him, but when I try it (with the same script it doesn't work. Here is the My Coding of the script and his.
Mine:
((MonoBehaviour)myPlayerGO.GetComponent("FPSInputController")).enabled = true;
((MonoBehaviour)myPlayerGO.GetComponent("MouseLook")).enabled = true;
myPlayerGO.transform.FindChild("Main Camera").gameObject.SetActive(true);
}
His:
coding example.png
(31.6 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613141524im_/https://answers.unity.com/themes/thub/images/avi.jpg)