Beispiel #1
0
 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;
 }
Beispiel #2
0
 public GEnemyIdle(GroundedEnemy myself)
 {
     character = myself;
     animator  = myself.gameObject.GetComponent <Animator>();
 }
Beispiel #3
0
 public GEnemyChase(Enemy myself)
 {
     character = (GroundedEnemy)myself;
     animator  = myself.GetComponent <Animator>();
 }
Beispiel #4
0
 public GEnemyWalk(GroundedEnemy myself)
 {
     character = myself;
     animator  = myself.GetComponent <Animator>();
 }