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(); } }
// Use this for initialization void Awake() { txt = transform.Find("Text").GetComponent<Text>(); rvCon = GameObject.Find("RankingContainer").GetComponent<RankingViewController>(); }
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(); } }
// Use this for initialization void Awake() { txt = transform.Find("Text").GetComponent <Text>(); rvCon = GameObject.Find("RankingContainer").GetComponent <RankingViewController>(); }