void ExpUpdate(LingXiuType _type) { switch (_type) { case LingXiuType.TIAN: if (tianEffect != null) { tianEffect.ShowLXEffect(); } break; case LingXiuType.DI: if (diEffect != null) { diEffect.ShowLXEffect(); } break; case LingXiuType.LIFE: if (lifeEffect != null) { lifeEffect.ShowLXEffect(); } break; } }
void RefreshStar(LingXiuType _type) { switch (_type) { case LingXiuType.TIAN: ShowStar(tianHunStarList, curInfo.Tian_soul); break; case LingXiuType.DI: ShowStar(diHunStarList, curInfo.Di_soul); break; case LingXiuType.LIFE: ShowStar(mingHunStarList, curInfo.Life_soul); break; } }
/// <summary> /// 播放等级升级特效 /// </summary> /// <param name="_position"></param> public void ShowLXEffect(Vector3 _position, LingXiuType _type) { type = _type; starBoo.transform.localPosition = _position; if (effectBoo != null) { effectBoo.ShowFx(); //effectBoo.ShowFx(()=>{ if (moveStar != null) { moveStar.gameObject.SetActive(true); moveStar.localPosition = Vector3.zero; //回位 TweenPosition tween = TweenPosition.Begin(moveStar.gameObject, 0.9f, _position); EventDelegate.Remove(tween.onFinished, ShowStarBoo); EventDelegate.Add(tween.onFinished, ShowStarBoo); } // }); } }
void LevUpdate(LingXiuType _type) { if (curInfo != null) { switch (_type) { case LingXiuType.TIAN: if (tianEffect != null) { if (tianHunStarList.Count > (curInfo.Tian_soul - 1) % 8) { tianEffect.ShowLXEffect(tianHunStarList[(curInfo.Tian_soul - 1) % 8].transform.localPosition, LingXiuType.TIAN); } } break; case LingXiuType.DI: if (diEffect != null) { if (diHunStarList.Count > (curInfo.Di_soul - 1) % 8) { diEffect.ShowLXEffect(diHunStarList[(curInfo.Di_soul - 1) % 8].transform.localPosition, LingXiuType.DI); } } break; case LingXiuType.LIFE: if (lifeEffect != null) { if (mingHunStarList.Count > (curInfo.Life_soul - 1) % 8) { lifeEffect.ShowLXEffect(mingHunStarList[(curInfo.Life_soul - 1) % 8].transform.localPosition, LingXiuType.LIFE); } } break; } } }