// Gamer受伤血量同步,返回值:是否死亡 protected static bool GamerHurt(Transform suffer, float damage) { BaseData sufferData = Utils.GetBaseData(suffer); if (sufferData != null) { return(sufferData.ChangeCurHealth(-damage)); } Debug.LogError("suffer data is not stored."); return(false); }