示例#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);
 }