Created throw hammer animation with no hammer skinning
This commit is contained in:
@@ -3,7 +3,7 @@ using UnityEngine;
|
||||
public class Character : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private Animator animator;
|
||||
protected Animator _animator;
|
||||
[SerializeField]
|
||||
private float MovementSpeed = 1.5f;
|
||||
[SerializeField]
|
||||
@@ -65,7 +65,7 @@ public class Character : MonoBehaviour
|
||||
FlipCharacter();
|
||||
}
|
||||
|
||||
animator.SetBool("Walk", h_movement != 0);
|
||||
//animator.SetBool("Walk", h_movement != 0);
|
||||
|
||||
_isOnLadder = mapElement == MapElementType.Ladder || GetMapElement(Vector2.up) == MapElementType.Ladder;
|
||||
if (_isOnLadder)
|
||||
@@ -119,7 +119,7 @@ public class Character : MonoBehaviour
|
||||
if (_isFalling)
|
||||
{
|
||||
_body.velocity = new Vector2(0, _body.velocity.y);
|
||||
animator.SetBool("Walk", false);
|
||||
//animator.SetBool("Walk", false);
|
||||
|
||||
if (GetMapElement(Vector2.down)==MapElementType.Ladder)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user