Click or drag to resize

ASLObjectSendAndIncrementLocalScale Method

Send and add to the local scale of this object for all users

Namespace:  ASL
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public void SendAndIncrementLocalScale(
	Vector3? _localScale,
	GameLiftManagerOpFunctionCallback callback = null
)

Parameters

_localScale
Type: SystemNullableVector3
The value that will be added to local scale 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 increment (+=) the local scale. Note that the object does not move to this scale until
        //it receives the packet from the server, even though it is the  caller of this function.
        gameobject.GetComponent<ASL.ASLObject>().SendAndIncrementLocalScale(new Vector3(.5, 2, .5));
    });
}
See Also