| | |
| | | private Image bg; |
| | | |
| | | [SerializeField] |
| | | private GameObject other; |
| | | private List<GameObject> other; |
| | | |
| | | // Start is called before the first frame update |
| | | void Start() |
| | |
| | | |
| | | isLogining = false; |
| | | |
| | | repairBtn = transform.Find("Panel/Other/RepairBtn").GetComponent<Button>(); |
| | | repairBtn = transform.Find("Panel/RepairBtn").GetComponent<Button>(); |
| | | startBtn = transform.Find("Panel/StartBtn").GetComponent<Button>(); |
| | | |
| | | versionTxt = transform.Find("Panel/Other/Version").GetComponent<Text>(); |
| | | versionTxt = transform.Find("Panel/Version").GetComponent<Text>(); |
| | | |
| | | progressSlider = transform.Find("Panel/Other/Progress").GetComponent<Slider>(); |
| | | progressSlider = transform.Find("Panel/Progress").GetComponent<Slider>(); |
| | | progressSlider.value = 0; |
| | | progressSlider.gameObject.SetActive(false); |
| | | |
| | |
| | | |
| | | versionTxt.text = "版本号:" + Application.version; |
| | | //resVersion.text 暂时没有使用 |
| | | transform.Find("Panel/Other/PlayerID").GetComponent<Text>().text = "玩家ID:" + imei0; |
| | | transform.Find("Panel/PlayerID").GetComponent<Text>().text = "玩家ID:" + imei0; |
| | | |
| | | |
| | | if (GameConfig.isFirstStart) |
| | |
| | | |
| | | if (GameConfig.GameCompletedCount > 0) |
| | | { |
| | | other.SetActive(false); |
| | | for (int i = 0; i < other.Count; ++i) |
| | | { |
| | | other[i].SetActive(false); |
| | | } |
| | | bg.sprite = nextSprite; |
| | | bg.SetNativeSize(); |
| | | } |