Example #1
0
    void Awake()
    {
        appLog_      = ServiceManager.GameServices.GetAppLog();
        gameManager_ = ServiceManager.GameServices.GetGameManager();

        appLog_.LogInfo("Splash.Awake");
        PanelContent.SetActive(false);

        appLog_.LogInfo("Splash: Initializing FB, first try");
        facebook_.Initialize(OnFacebookInitialized);
    }
Example #2
0
    private void OnFacebookInitialized()
    {
        appLog_.LogInfo("Splash: FB, IsInitialized = {0}, IsLoggedIn = {1}, skip = {2}", facebook_.IsInitialized(), facebook_.IsLoggedIn(), SkipFacebookLogin);

        bool isLoggedIn = facebook_.IsInitialized() && (facebook_.IsLoggedIn() || SkipFacebookLogin);

        if (!isLoggedIn)
        {
            ShowSplash();
            return;
        }

        OnFacebookLoggedIn();
    }
Example #3
0
 public bool EsInformeDeRegimenInformativo(Informes_Pedidos informes_Pedidos)
 {
     if (informes_Pedidos.Informe == 1)
     {
         _appLog.LogInfo("Voy a generar informe de Regimen Informativo con Id " + informes_Pedidos.Id);
         return(true);
     }
     return(false);
 }