public virtual void Init(Monster monster, AiBuffMgr buffMgr, float duration, int buffId, double val, float dtTime = 0) { m_BuffId = buffId; m_BuffMgr = buffMgr; m_Monster = monster; m_Duration = duration; m_CurTime = 0; m_DtTime = dtTime; SetVal(val); }
public void AddBuff(AiBuffType buffType, float effectTime, double val, float dtTime = 0) { if (m_InDeath || effectTime <= 0) { return; } ; if (m_AiBuffMgr == null) { m_AiBuffMgr = new AiBuffMgr(this); } m_AiBuffMgr.AddBuff(buffType, effectTime, val, dtTime); }
public AiFiringSpeedBuff(Monster monster, AiBuffMgr buffMgr, float duration, int buffId, double val, float dtTime) { Init(monster, buffMgr, duration, buffId, val, dtTime); }
public virtual void Init(Monster player, AiBuffMgr buffMgr, float duration, int buffId) { Init(player, buffMgr, duration, buffId, 0); }