public override void Attack() { if (attackTarget == null) { attackTarget = GameObject.FindGameObjectWithTag("Player"); } enemyMotor.LookAt(attackTarget.transform); PrepareShoot(); shootModule.Fire(); }
public void LaunchTowards(Vector3 dir) { grenedeModule.Direction = dir; grenedeModule.Fire(); }
public void ShootTowards(Vector3 dir) { gunFireModule.Direction = dir; gunFireModule.Fire(); }