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

public class SquareEnemyScript : BasicEnemy {

	// Use this for initialization
	void Start () {
		waveType = GlobalEnums.WaveTypes.Square;
	}
	
	// Update is called once per frame
	protected void Update () {
		
		GlobalEnums.WaveTypes pWave = GameObject.FindGameObjectWithTag ("Player").GetComponent<PlayerScript> ().GetCurrentWaveType();

		if (pWave == waveType)
		{
			isAsleep = true;
		} 
		else 
		{
			isAsleep = false;
		}

		Movement ();
	}
}
