Пример #1
0
    private void ClientShowGameOver(bool victory, int timeTaken, bool controlledByOrchestrator)
    {
        var method = MethodBase.GetCurrentMethod();
        var attr   = (ClientAccess)method.GetCustomAttributes(typeof(ClientAccess), true)[0];

        if (!attr.HasAccess)
        {
            return;
        }
        GameOverScreen.Show();
        GameOverScreen.SetText(victory, timeTaken);
        GameOverScreen.SetButtonsEnabled(!controlledByOrchestrator);
    }