void Start() { if ( isLocalPlayer ) { pendingMoves = new List<PlayerNetworkActionContainer>(); FindFreeSpawnPoint(); transform.position = home.GetSpawnPosition(); myCam = Camera.main.GetComponent<CameraControl>(); if( myCam != null ) myCam.SetFollowTarget( gameObject ); lastLookDirection = new Vector3(-2,0,-2); rb = GetComponent<Rigidbody>(); serverMove = new PlayerMove { moveNum = 0, currentPosition = home.GetSpawnPosition(), lookAtThis = lastLookDirection, hasRangeEquipped = false, useWeapon = false, grabbing = false }; UpdatePredictedState(); } SyncState( true ); //SyncColor(); // TODO (if we have smth like that) }