void HandleCastEvent(object sender, CastEventArgs e) { if (e.Skill is Attack) { animator_.SetTrigger(attackHash_); } }
private void OnMouseKlick(object sender, MouseEventArgs e) { if (this.ThrowMagic != null) { var castArgs = new CastEventArgs(e.X, e.Y); this.ThrowMagic(this, castArgs); } }