Exemplo n.º 1
0
 //被击飞效果立即下落
 public virtual void BeatFlyFallDown(uint buffID)
 {
     if (realObject != null)
     {
         BeatFlyMotion beatFlyMotion = realObject.GetComponent <BeatFlyMotion>();
         //当前buff对应击飞buffer移除击击飞效果
         if (beatFlyMotion != null && buffID == beatFlyMotion.mBuffId)
         {
             beatFlyMotion.FallNow();
         }
     }
 }
Exemplo n.º 2
0
 //被击飞效果
 public virtual void OnBeatFly(uint buffId, string action, float raiseSpeed, float raiseAccSpeed, float fallSpeed, float fallAccSpeed, float stayTime, int canRecover)
 {
     if (realObject != null)
     {
         BeatFlyMotion beatFlyMotion = realObject.GetComponent <BeatFlyMotion>();
         //判断是否有被击飞组件,没有就添加
         if (beatFlyMotion == null)
         {
             beatFlyMotion = realObject.AddComponent <BeatFlyMotion>();
         }
         beatFlyMotion.BeatFly(buffId, action, raiseSpeed, raiseAccSpeed, fallSpeed, fallAccSpeed, stayTime, canRecover);
     }
 }