void Start() { DEF.Init(); instance = this; //NGUITools.SetActive(PanelOverGame,false); ScoreControl.Score = 0; DEF.ScaleAnchorGui(); restart(); setCountTextEffect(); SoundEngine.getInstance().PlayLoop(SoundEngine.getInstance()._soundBG2); }
void Start() { DEF.Init(); DEF.ScaleAnchorGui(); ScoreControl.loadGame(); instance = this; LabelCoin.text = ScoreControl.Coin.ToString(); LabelScore.text = ScoreControl.Score.ToString(); ShopManager.instance = GameShop.GetComponent <ShopManager>(); SoundEngine.getInstance().PlayLoop(SoundEngine.getInstance()._soundBG1); //Application.targetFrameRate = 60; // GamePlay.ShowADS(); // GamePlay.firstShowAds = false; }
void Start() { DEF.Init(); DEF.ScaleAnchorGui(); instance = this; // currentpage = ScoreControl.mUnblockLevel / 20 + 1; // if (currentpage > 34) currentpage = 34; for (int i = 0; i < 24; i++) { GameObject g = Instantiate(button5) as GameObject; g.SetActive(true); g.transform.parent = scrollView.transform; g.transform.localScale = Vector3.one; g.transform.localPosition = new Vector3(0, y0 + i * dy, 0); SelectLevels s = g.GetComponent <SelectLevels>(); s.Init(i * 5); } LabelCoin.text = ScoreControl.Coin.ToString(); LabelScore.text = ScoreControl.Score.ToString(); ShopManager.instance = GameShop.GetComponent <ShopManager>(); }
void Start() { DEF.Init(); PanelBoard = GameObject.Find("PanelBoard"); PanelInputName = GameObject.Find("PanelInputName"); if (ScoreControl.UserName.Length >= 5) { PostHightScore(); getHightScore(); loadRanking = true; NGUITools.SetActive(PanelInputName, false); } else { loadRanking = false; NGUITools.SetActive(PanelBoard, false); } DEF.ScaleAnchorGui(); instance = this; }