Exemplo n.º 1
0
 void UpdateHit()
 {
     Animator.SetBool("IsHit", m_MovementModel.IsBeingPushed());
 }
    /*  void UpdateShield()
     * {
     *    Animator.SetBool("HasShield", m_EquipModel.GetEquippedShield() != ItemType.None);
     * }*/

    /*  void UpdatePickingUpAnimation()
     * {
     *    bool isPickingUpTwoHanded = false;
     *    bool isPickingUpOneHanded = false;
     *
     *    if (m_MovementModel.IsFrozen() == true)
     *    {
     *        ItemType pickupItem = m_MovementModel.GetItemThatIsBeingPickedUp();
     *        if (m_MovementModel.GetItemThatIsBeingPickedUp() != ItemType.None)
     *        {
     *            ItemData itemData = Database.Item.FindItem(pickupItem);
     *            switch (itemData.Animation)
     *            {
     *                case ItemData.PickupAnimation.OneHanded:
     *                    isPickingUpOneHanded = true;
     *                    break;
     *                case ItemData.PickupAnimation.TwoHanded:
     *                    isPickingUpTwoHanded = true;
     *                    break;
     *            }
     *        }
     *    }
     *    Animator.SetBool("IsPickingUpTwoHanded", isPickingUpTwoHanded);
     *    Animator.SetBool("IsPickingUpOneHanded", isPickingUpOneHanded);
     * }*/

    public void UpdateHurt()
    {
        Animator.SetBool("IsHurt", m_MovementModel.IsBeingPushed()); // okay so later you can set IsHurt to another function, because the character is being pushed anyway
    }