public void Update() { if (mLife > float.Epsilon) { BuffLife -= (int)(mAttack.GetBehaviorDeltaTime() * 1000); if (BuffLife <= float.Epsilon) { for (int i = 0; i < effects.Count; i++) { BuffEffect eff = effects[i]; eff.OnTimeOut(); } SetFinished(); } } if (IsFinished() != false) { for (int i = 0; i < effects.Count; i++) { BuffEffect eff = effects[i]; if (eff.buffdelayTime <= 0) { eff.Update(mAttack.GetBehaviorDeltaTime() * 1000); } } } }