public void HandleEffect(FightDanmuSkillEffect ce) { string[] args = ce.effectString.Split(','); switch (ce.type) { case eFightDanmuSkillEffectType.AddHp: AddHp(int.Parse(args[0])); break; case eFightDanmuSkillEffectType.GetArmor: SetArmor(int.Parse(args[0])); break; case eFightDanmuSkillEffectType.GetScore: GetScore(int.Parse(args[0])); AddBadDanmu(20); break; case eFightDanmuSkillEffectType.ClearDanmu: DestroyBadRandomly(int.Parse(args[0])); break; case eFightDanmuSkillEffectType.GetHot: SlowDown(int.Parse(args[0])); break; default: break; } }
public ZhiboMode2Skill(ZhiboMode2Skill other) { this.Se = new FightDanmuSkillEffect(); this.Se.type = other.Se.type; this.Se.effectString = other.Se.effectString; this.Name = other.Name; this.Cd = other.Cd; this.CdLeft = 0f; this.EnegyCost = other.EnegyCost; this.Desp = other.Desp; this.PictureUrl = other.PictureUrl; }