예제 #1
0
파일: earth1.cs 프로젝트: BXZR/Sword
 public override void OnBeAttack(PlayerBasic user, PlayerBasic attacker)
 {
     user.ActerHp += hpup;
     effectBasic[] efs = user.GetComponents <effectBasic> ();
     foreach (effectBasic a in efs)
     {
         a.OnHpUp(hpup);
     }
 }
예제 #2
0
    //只是获取最基本的战斗被动技能
    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);
    }