Пример #1
0
 void GrabObject()
 {
     if (damObject != null && damObject.canBeGrabbed() && objectHolded == false)
     {
         moveSpeed /= speedMalus;
         damObject.GetComponent <Rigidbody2D>().velocity = Vector2.zero;
         damObject.transform.parent = this.gameObject.transform;
         action       = CharacterAction.BringingObject;
         objectHolded = true;
         damObject.grabObject(transform, team, playerId);
     }
 }