Пример #1
0
 void HandleCastEvent(object sender, CastEventArgs e)
 {
     if (e.Skill is Attack)
     {
         animator_.SetTrigger(attackHash_);
     }
 }
Пример #2
0
 private void OnMouseKlick(object sender, MouseEventArgs e)
 {
     if (this.ThrowMagic != null)
     {
         var castArgs = new CastEventArgs(e.X, e.Y);
         this.ThrowMagic(this, castArgs);
     }
 }