Ejemplo n.º 1
0
 private void Start()
 {
     this.anim       = GetComponent <Animator>();
     this.behavior   = GetComponent <HeroBehavior>();
     this.moveHash   = Animator.StringToHash("Move");
     this.attackHash = Animator.StringToHash("Attack");
 }
Ejemplo n.º 2
0
 private void Start()
 {
     this.anim       = GetComponent <Animator>();
     this.behavior   = GetComponent <HeroBehavior>();
     this.moveHash   = Animator.StringToHash("Move");
     this.attackHash = Animator.StringToHash("Attack");
     this.upHash     = Animator.StringToHash("Up");
     this.downHash   = Animator.StringToHash("Down");
     this.leftHash   = Animator.StringToHash("Left");
     this.rigthHash  = Animator.StringToHash("Right");
 }