ASLObjectSendAndSetWorldRotation Method |
Namespace: ASL
public void SendAndSetWorldRotation( Quaternion? _rotation, GameLiftManagerOpFunctionCallback callback = null )
void SomeFunction() { //Claim the object first gameobject.GetComponent<ASL.ASLObject>().SendAndSetClaim(() => { //Send and then set (=) the world rotation. Note that the object does not move to this rotation until //it receives the packet from the server, even though it is the caller of this function. gameobject.GetComponent<ASL.ASLObject>().SendAndSetWorldRotation(new Quaternion(0, 80, 60, 1)); }); }