Exemplo n.º 1
0
    public void CmdChangeButtonState(GameObject button, bool isInside)
    {
        ButtonHandler b = button.GetComponent <ButtonHandler>();

        b.ChangeState(button, isInside);
        b.RpcChangeState(button, isInside);
        arm.AttachButton(isInside ? button : null);
        arm.RpcAttachButton(isInside ? button : null);
    }