Ejemplo n.º 1
0
 public MoveToTargetState(GroundEnemy groundEnemy, float moveSpeed)
 {
     this.groundEnemy = groundEnemy;
     this.enemy       = groundEnemy.GetComponent <Enemy>();
     lerpAmount       = 0;
     this.moveSpeed   = moveSpeed;
 }
Ejemplo n.º 2
0
 public FindTargetState(GroundEnemy groundEnemy)
 {
     this.positions   = groundEnemy.positions;
     this.groundEnemy = groundEnemy;
     this.enemy       = groundEnemy.GetComponent <Enemy>();
     hasTarget        = false;
 }