Example #1
0
 void Update()
 {
     //Anims
     animator.SetFloat("Speed", character.GetMove().magnitude);
     animator.SetInteger("Side", character.GetSideAnim());
     if (character_item != null)
     {
         animator.SetBool("Hold", character_item.GetHeldItem() != null);
     }
 }
Example #2
0
 void Update()
 {
     animator.SetFloat("Speed", character.GetMove().magnitude);
     animator.SetInteger("Side", character.GetSideAnim());
 }
Example #3
0
 public Vector2 GetMove()
 {
     return(character.GetMove());
 }