Class PhysicsSyncer
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class PhysicsSyncer : MonoBehaviour, IPunObservable
- Inheritance
-
PhysicsSyncer
- Implements
-
IPunObservable
- Inherited Members
- Extension Methods
Constructors
PhysicsSyncer()
public PhysicsSyncer()
Fields
hasRecieved
public bool hasRecieved
Field Value
lastPos
public Vector3 lastPos
Field Value
- Vector3
rig
public Rigidbody rig
Field Value
sinceLastPackage
public float sinceLastPackage
Field Value
targetPos
public Vector3 targetPos
Field Value
- Vector3
targetRot
public Quaternion targetRot
Field Value
view
public PhotonView view
Field Value
- PhotonView
Methods
FixedUpdate()
public void FixedUpdate()
OnPhotonSerializeView(PhotonStream, PhotonMessageInfo)
public void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info)
Parameters
stream
PhotonStreaminfo
PhotonMessageInfo
Start()
public void Start()
Update()
public void Update()