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

public class SinWallScript : BasicWall {

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

		if(pWave == waveType) 
		{
			currentActivityState = GlobalEnums.ActivityState.Open;
		}
		else if(pWave != waveType) 
		{
			currentActivityState = GlobalEnums.ActivityState.Closed;
		}

		ChangeActivityState ();;
	}
}
