| | |
| | | |
| | | public Image Title; |
| | | |
| | | private string titlePath = "UI/Endless/SkillTitle/"; |
| | | |
| | | // Start is called before the first frame update |
| | | private void Start() |
| | | { |
| | | ColorVal = 0; |
| | | EventCenter.Ins.Add((int)KTGMGemClient.EventType.EndlessBossSkillGlintTitle, Glint); |
| | | EventCenter.Ins.Add<int>((int)KTGMGemClient.EventType.EndlessBossSkillGlintTitle, Glint); |
| | | } |
| | | |
| | | // Update is called once per frame |
| | |
| | | |
| | | } |
| | | |
| | | private void Glint() |
| | | private void Glint(int skillType) |
| | | { |
| | | Title.sprite = Resources.Load<Sprite>($"{titlePath}{skillType}"); |
| | | //设置一个DOTween队列 |
| | | Sequence flashSeq = DOTween.Sequence(); |
| | | Color c = Title.color; |