Click or drag to resize

ASLObjectSendAndIncrementLocalRotation Method

Sends and adds to the local rotation of this object for all users

Namespace:  ASL
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public void SendAndIncrementLocalRotation(
	Quaternion? _localRotation,
	GameLiftManagerOpFunctionCallback callback = null
)

Parameters

_localRotation
Type: SystemNullableQuaternion
The value that will be added to rotation of this object.
callback (Optional)
Type: ASLGameLiftManagerOpFunctionCallback
The optional callback function for OpFunction
Examples
void SomeFunction()
{
    //Claim the object first
    gameobject.GetComponent<ASL.ASLObject>().SendAndSetClaim(() =>
    {
        //Send and then set (*=) the local rotation. Note that the object does not to this rotation until
        //it receives the packet from the server, even though it is the  caller of this function.
        gameobject.GetComponent<ASL.ASLObject>().SendAndIncrementLocalRotation(new Quaternion(0, 80, 60, 1));
    });
}
See Also