Click or drag to resize

ASLObjectSendAndSetObjectColor Method

Send and sets this objects color for the user who called this function and for all other players

Namespace:  ASL
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public void SendAndSetObjectColor(
	Color _myColor,
	Color _opponentsColor,
	GameLiftManagerOpFunctionCallback callback = null
)

Parameters

_myColor
Type: Color
The color to be set for the user who called this function
_opponentsColor
Type: Color
The color to be set for everyone who did not call this function (everyone else)
callback (Optional)
Type: ASLGameLiftManagerOpFunctionCallback
The optional callback function for OpFunction
Examples
void SomeFunction()
{
    //Claim our object first
    gameobject.GetComponent<ASL.ASLObject>().SendAndSetClaim(() =>
    {
        //Once claimed, set the object color for the claimer and for everyone else
        gameobject.GetComponent<ASL.ASLObject>().SendAndSetObjectColor(new Color(0, 0, 0, 1),  new Color(1, 1, 1, 1));
    });
}
See Also