using System.Collections.Generic;
|
using UnityEngine;
|
|
public class BossSkillTip_JudgeSummon
|
{
|
/// <summary>
|
/// 技能id
|
/// </summary>
|
public int skillID;
|
|
public bool delayUpdate = true;
|
public bool IsFinished { get; private set; }
|
|
public BossSkillTip_JudgeSummon(int skillId)
|
{
|
delayUpdate = true;
|
IsFinished = false;
|
}
|
|
public void Update()
|
{
|
if (delayUpdate)
|
{
|
delayUpdate = false;
|
return;
|
}
|
|
List<GActor> _list = GAMgr.Instance.GetAll();
|
|
bool _isFinished = true;
|
|
for (int i = 0; i < _list.Count; ++i)
|
{
|
if (_list[i] is GA_NpcSummonFight)
|
{
|
_isFinished = false;
|
break;
|
}
|
}
|
|
if (_isFinished)
|
{
|
vnxbqy.UI.BossNotify.Release(skillID);
|
IsFinished = true;
|
}
|
}
|
}
|