Пример #1
0
 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);
 }
Пример #2
0
 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);
 }
Пример #3
0
 public AiFiringSpeedBuff(Monster monster, AiBuffMgr buffMgr, float duration, int buffId, double val, float dtTime)
 {
     Init(monster, buffMgr, duration, buffId, val, dtTime);
 }
Пример #4
0
 public virtual void Init(Monster player, AiBuffMgr buffMgr, float duration, int buffId)
 {
     Init(player, buffMgr, duration, buffId, 0);
 }