ASLObjectSendAndSetTag Method |
Namespace: ASL
public void SendAndSetTag( string _tag, GameLiftManagerOpFunctionCallback _callback = null )
void SomeFunction() { //Claim your object first gameobject.GetComponent<ASL.ASLObject>().SendAndSetClaim(() => { //Send and then set (=) the tag this object should have. Note that the object does not set the tag of this object until //it receives the packet from the server, even though it is the caller of this function. gameobject.GetComponent<ASL.ASLObject>().SendAndSetTag("Your Tag Here"); }); }