public override void OnBeAttack(PlayerBasic user, PlayerBasic attacker) { user.ActerHp += hpup; effectBasic[] efs = user.GetComponents <effectBasic> (); foreach (effectBasic a in efs) { a.OnHpUp(hpup); } }
//只是获取最基本的战斗被动技能 public static string getBasicBEEffectInformation() { string skillsInformation = "\n"; effectBasic[] effects = thePlayer.GetComponents <effectBasic> (); foreach (effectBasic ef in effects) { //ef.Init (); if (ef.isBE()) { skillsInformation += ef.getInformation() + "\n" + ef.getExtraInformation() + "\n"; } } return(BESkillColor + skillsInformation + colorEnd); }