using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// 这里主要是为了服务器传输数据 /// public interface ICharactersHealth { public CharacterHealthyType HealthType { get; set; } /// /// 最大生命值 /// public float f_MaxHP { get; set; } /// /// 当前生命值 /// public float f_CurrHP { get; set; } /// /// 最大生命值 /// public float f_MaxMP { get; set; } /// /// 当前生命值 /// public float f_CurrMP { get; set; } /// /// 护盾列表 /// public Dictionary f_Shield { get; set; } void OnHurt(float harmNum,CharacterHurtType charactersHurtType); void OnRecoverBlood(float bloodNum); void OnDie(); }