chenxin
2020-11-09 172d8ffbf5fe3bdd60b3d71a3a60feeed1cb1762
Assets/Scripts/Core/Health/HealthChangeInfo.cs
@@ -14,6 +14,26 @@
      public float newHealth;
      /// <summary>
        /// 是否存在魔法护盾
        /// </summary>
        public bool IsExistShieldWall { get; set; }
        /// <summary>
        /// 魔法护盾最大生命值
        /// </summary>
        public float ShieldWallMaxHealth;
        /// <summary>
        /// 魔法护盾当前生命值
        /// </summary>
        public float ShieldWallCurrentHealth;
        /// <summary>
        /// 上一次的魔法护盾生命值
        /// </summary>
        public float ShieldWallOldHealth;
        /// <summary>
      /// 用于标注是由哪个种类的Tower造成的伤害.
      /// </summary>
      public int attributeId;
@@ -29,5 +49,15 @@
      {
         get { return Mathf.Abs(healthDifference); }
      }
        public float ShieldWallHealthDifference
        {
            get { return ShieldWallCurrentHealth - ShieldWallOldHealth; }
        }
        public float AbsShieldWallHealthDifference
        {
            get { return Mathf.Abs(ShieldWallHealthDifference); }
        }
   }
}