Hello,
I have a script that is trying to enable a child camera on a seperate object. For some reason I can not figure out how to do this successfully. I have tried a few different methods. E.G. Player.GetComponentInChildren().enabled = true;
But this returns an error Assets/Scripts/RandomMatchmaker.cs(39,47): error CS0246: The type or namespace name 'camera' could not be found. Are you missing a using directive or an assembly reference?
I guess what I am looking for is some sort of example in C#. If it helps I am attempting to make a photon networked game, and I need this code to Instantiate a player and activate it’s camera.
Thanks, if there is anything else you need to know feel free to ask in the comments.