ASLObjectSendAndSetLocalScale Method |
Namespace: ASL
public void SendAndSetLocalScale( Vector3? _localScale, GameLiftManagerOpFunctionCallback callback = null )
void SomeFunction() { //Claim the object first gameobject.GetComponent<ASL.ASLObject>().SendAndSetClaim(() => { //Send and then set (=) 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>().SendAndSetLocalScale(new Vector3(.5, 2, .5)); }); }