ASLObjectSendAndIncrementWorldPosition Method |
Namespace: ASL
public void SendAndIncrementWorldPosition( Vector3? _position, GameLiftManagerOpFunctionCallback callback = null )
void SomeFunction() { //Claim the object first gameobject.GetComponent<ASL.ASLObject>().SendAndSetClaim(() => { //Send and then increment (+=) the world position. Note that the object does not move to this position until //it receives the packet from the server, even though it is the caller of this function. gameobject.GetComponent<ASL.ASLObject>().SendAndIncrementWorldPosition(new Vector3(1, 2, 5)); }); }