private void showTip(string msg) { CommonUIAni c = _tipPanel.GetComponent <CommonUIAni>(); Text t = _tipPanel.transform.Find("TipMsg").gameObject.GetComponent <Text>(); t.text = msg; c.PlayScale(10f); _tipPanel.SetActive(true); // c.AutoPlay(10f,10f,1f); }
// Update is called once per frame void Update() { if (_aniIndex == 0) { Debug.Log("Victory ResetVictory"); ResetVictory(); _aniIndex = 1; } if (!_isPlaying && _aniIndex == 1) { Debug.Log("Victory _bg"); _isPlaying = true; CommonUIAni ani = _bg.GetComponent <CommonUIAni>(); ani.PlayScale(3f, EventTypeName.VictoryActionDone); _bg.SetActive(true); } if (!_isPlaying && _aniIndex == 2) { Debug.Log("Victory _excellet"); _isPlaying = true; CommonUIAni ani = _excellet.GetComponent <CommonUIAni>(); ani.PlayScale(3f, EventTypeName.VictoryActionDone); _excellet.SetActive(true); } if (!_isPlaying && _aniIndex == 3 && _star >= 1) { _isPlaying = true; CommonUIAni ani = _star0.GetComponent <CommonUIAni>(); ani.PlayScale(3f, EventTypeName.VictoryActionDone); _star0.SetActive(true); } if (!_isPlaying && _aniIndex == 4 && _star >= 2) { _isPlaying = true; CommonUIAni ani = _star1.GetComponent <CommonUIAni>(); ani.PlayScale(3f, EventTypeName.VictoryActionDone); _star1.SetActive(true); } if (!_isPlaying && _aniIndex == 5 && _star >= 3) { _isPlaying = true; CommonUIAni ani = _star2.GetComponent <CommonUIAni>(); ani.PlayScale(3f, EventTypeName.VictoryActionDone); _star2.SetActive(true); } }