  | 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
Syntaxpublic void SendAndSetObjectColor(
	Color _myColor,
	Color _opponentsColor,
	GameLiftManagerOpFunctionCallback callback = null
)
Public Sub SendAndSetObjectColor ( 
	_myColor As Color,
	_opponentsColor As Color,
	Optional callback As GameLiftManagerOpFunctionCallback = Nothing
)
public:
void SendAndSetObjectColor(
	Color _myColor, 
	Color _opponentsColor, 
	GameLiftManagerOpFunctionCallback^ callback = nullptr
)
member SendAndSetObjectColor : 
        _myColor : Color * 
        _opponentsColor : Color * 
        ?callback : GameLiftManagerOpFunctionCallback 
(* Defaults:
        let _callback = defaultArg callback null
*)
-> unit 
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 
Examplesvoid SomeFunction()
{
    
    gameobject.GetComponent<ASL.ASLObject>().SendAndSetClaim(() =>
    {
        
        gameobject.GetComponent<ASL.ASLObject>().SendAndSetObjectColor(new Color(0, 0, 0, 1),  new Color(1, 1, 1, 1));
    });
}
See Also