using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GroundEnemie : Obstacle
{

    public float normalSpeed;
    public float chasingSpeed;
    public float movSpeed;

    private Rigidbody2D rb;

    public float direction;


    // Use this for initialization
    void Start ()
    {
        rb = GetComponent<Rigidbody2D>();
        movSpeed = normalSpeed;
        direction = 1;
	}
	
	// Update is called once per frame
	void Update ()
    {
        rb.velocity = (movSpeed * direction * Vector2.right * Time.deltaTime);
	}


}
