private void Start() { this.anim = GetComponent <Animator>(); this.behavior = GetComponent <HeroBehavior>(); this.moveHash = Animator.StringToHash("Move"); this.attackHash = Animator.StringToHash("Attack"); }
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"); }