public override void Event_ActivateFx(AnimationEvent animEvent) { if (currentSkill == null || currentSkill is Object && currentSkill.Equals(null)) { return; } if (!_opponents.Any()) { return; } currentOpponent = _opponents[animEvent.intParameter]; if (currentOpponent == null || currentOpponent is Object && currentOpponent.Equals(null)) { return; } var evtFxName = string.IsNullOrEmpty(animEvent.stringParameter) ? currentSkill.effectName : animEvent.stringParameter; currentSkill.ActivateEffect(evtFxName, _baseCharacter, currentOpponent); }
public override bool Equals(object obj) { return(obj is SkillLevel other && BaseSkill.Equals(other.BaseSkill) && Level == other.Level); }
public override bool Equals(object obj) { return(obj is TrainedSkill other && BaseSkill.Equals(other.BaseSkill) && SkillPoints == other.SkillPoints); }