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