| | |
| | | protected override void Awake() |
| | | { |
| | | base.Awake(); |
| | | //这里为了方便直接使用Endless2D |
| | | GameObject root = GameObject.Find("ManagerRoot"); |
| | | |
| | | if (root == null) |
| | |
| | | Vector2 tmpOffect = new Vector2(0, offect); |
| | | transform.Find("Panel/Bottom").GetComponent<RectTransform>().anchoredPosition += tmpOffect; |
| | | transform.Find("Panel/TowerBuyBtn").GetComponent<RectTransform>().anchoredPosition += tmpOffect; |
| | | transform.Find("Panel/SwitchSpeed").GetComponent<RectTransform>().anchoredPosition += tmpOffect; |
| | | |
| | | transform.Find("Panel/BossHPBar").GetComponent<RectTransform>().anchoredPosition -= tmpOffect * 0.5f; |
| | | transform.Find("Panel/Score").GetComponent<RectTransform>().anchoredPosition -= tmpOffect * 0.5f; |
| | |
| | | |
| | | darkGroundImg.SetActive(false); |
| | | //查询是否已经做过了新手引导 |
| | | int guide = PlayerPrefs.GetInt("GemBattleGuide"); |
| | | GameConfig.IsNewbie = guide == 0; |
| | | |
| | | // cx test |
| | | //GameConfig.IsNewbie = false; |
| | | if (GameConfig.IsNewbie) |