Hi,
In trying to get my new Photon game to work (see other recent threads) I think I have a clue why synchronisation is iffy... jumpy, and sometimes REALLY jumpy.
I have a red error:
NullReferenceException: Object reference not set to an instance of an object
UnityStandardAssets.Characters.ThirdPerson.ThirdPersonCharacter.CheckGroundStatus () (at Assets/Standard Assets/Characters/ThirdPersonCharacter/Scripts/ThirdPersonCharacter.cs:215)
UnityStandardAssets.Characters.ThirdPerson.ThirdPersonCharacter.Move (Vector3 move, Boolean crouch, Boolean jump) (at Assets/Standard Assets/Characters/ThirdPersonCharacter/Scripts/ThirdPersonCharacter.cs:54)
UnityStandardAssets.Characters.ThirdPerson.ThirdPersonUserControl.FixedUpdate () (at Assets/Standard Assets/Characters/ThirdPersonCharacter/Scripts/ThirdPersonUserControl.cs:71)
I thought it had something to do with the Behavior Setup FSM. This is supposed to turn ON the third person controller IF its yours... (and the camera in the demo, but IM using a different camera that is external to the character)
The demo originally had the old 3rd person controller specified here but as Ive gone over to Mechanim, and using EXACTLY the new Standard Assets 3rd Person (with new skin) I think the equivalent script is the Third Person Character script.
So I deleted the old action and drag in the component, add enable.. and all is sort of OK... judders a bit, but maybe thats tweaking... BUT I get the above error---
And now heres my action to enable the script...
So... the clue for me is... CheckGroundStatus
Cos if that script is removed from the remote player, that one seems to have a Ground Check Distance field, maybe it needs one?
Its not KILLING my game, but +999 red errors doesnt seem very friendly...
Mark