Example #1
0
 override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     #region Getting Components
     player = GameObject.FindGameObjectWithTag("Player").transform;
     rb     = animator.GetComponent <Rigidbody2D>();
     move   = animator.GetComponent <BrigMove>();
     hp     = animator.GetComponent <BrigHP>();
     #endregion
 }
Example #2
0
 void Start()
 {
     maxHealth     = setMax;
     currentHealth = maxHealth;
     move          = GetComponent <BrigMove>();
 }