- Home /
Question by
mihir solanki · Jul 05, 2015 at 11:37 PM ·
multiplayeraccessremotethird person controllerfirstpersoncontroller
access first person controller from other script
hey i am creating a multiplayer game using appwarp and i am using its sample to understand its mechanics. i one of its scripts,it accesses a variable present in the third person controller script by using the following code:-
ThirdPersonController ctr = GetComponent<ThirdPersonController>();
ctr.isRemotePlayer = false;
i tried converting it to first person by using this:-
FirstPersonController ctr=GetComponent();
ctr.isRemotePlayer = false;
but it says " The type or namespace name `FirstPersonController' could not be found. Are you missing a using directive or an assembly reference?"
Please help!
Comment