Exemple #1
0
 public void SetData(MeleeWeaponAnimationPrototype prototype, Angle baseAngle, IEntity attacker)
 {
     _meleeWeaponAnimation = prototype;
     _sprite.AddLayer(new RSI.StateId(prototype.State));
     _baseAngle = baseAngle;
     Owner.Transform.AttachParent(attacker);
 }
 public void SetData(MeleeWeaponAnimationPrototype prototype, Angle baseAngle, EntityUid attacker, bool followAttacker = true)
 {
     _meleeWeaponAnimation = prototype;
     _sprite?.AddLayer(new RSI.StateId(prototype.State));
     _baseAngle = baseAngle;
     if (followAttacker)
     {
         _entMan.GetComponent <TransformComponent>(Owner).AttachParent(attacker);
     }
 }
 public void SetData(MeleeWeaponAnimationPrototype prototype, Angle baseAngle)
 {
     _meleeWeaponAnimation = prototype;
     _sprite.AddLayer(new RSI.StateId(prototype.State));
     _baseAngle = baseAngle;
 }