Exemplo n.º 1
0
    void Awake()
    {
        //dataManager = DB.GetComponent<DataManager>();
        //cid = ClientInfoData.Instance;
        ds = GameObject.Find("DebugObject").GetComponent <DebugingScript>();
        if (RankingView != null)
        {
            rankingViewController = RankingView.GetComponent <RankingViewController>();
        }
        DealWithFBMenus(false);

        enabled = false;
        FB.Init(SetInit, OnHideUnity);
        if (!FB.IsLoggedIn)
        {
            Debug.Log("Didn't login");
            ds.debugTxt += "Didn't login\n";

            DoThingsAfterNotLoggedIn();
        }
        else
        {
            ds.debugTxt = "Already logged in\n";

            DoThingsAfterLoggedIn();
        }
    }
Exemplo n.º 2
0
    void Awake()
    {
        //dataManager = DB.GetComponent<DataManager>();
        //cid = ClientInfoData.Instance;
        ds = GameObject.Find("DebugObject").GetComponent<DebugingScript>();
        if(RankingView != null) rankingViewController = RankingView.GetComponent<RankingViewController>();
        DealWithFBMenus(false);

        enabled = false;
        FB.Init (SetInit, OnHideUnity);
        if (!FB.IsLoggedIn) {
            Debug.Log("Didn't login");
            ds.debugTxt += "Didn't login\n";

            DoThingsAfterNotLoggedIn();
        }else{
            ds.debugTxt = "Already logged in\n";

            DoThingsAfterLoggedIn();
        }
    }