public GEnemyAttack(Enemy myself, float hm) { character = (GroundedEnemy)myself; animator = myself.GetComponent <Animator>(); characterBody = myself.GetComponent <Rigidbody>(); meleeAttack = myself.basicAttack.gameObject; hitbox = meleeAttack.GetComponent <Collider>(); horizontalMovement = hm; }
public GEnemyIdle(GroundedEnemy myself) { character = myself; animator = myself.gameObject.GetComponent <Animator>(); }
public GEnemyChase(Enemy myself) { character = (GroundedEnemy)myself; animator = myself.GetComponent <Animator>(); }
public GEnemyWalk(GroundedEnemy myself) { character = myself; animator = myself.GetComponent <Animator>(); }