using UnityEngine;
using System.Collections;

public class BlueWoodScript : MonoBehaviour {
		
		BoxCollider2D itsOwnCollider;
		public GameObject playerREF;
		MummyScript mummyREF;
		
		// Use this for initialization
		void Start () {
			
			itsOwnCollider = GetComponent<BoxCollider2D> ();
			mummyREF = playerREF.GetComponent<MummyScript> ();
		}
		
		// Update is called once per frame
		void Update () {
			
			if (mummyREF.wet)
			{
				itsOwnCollider.isTrigger = false;
				gameObject.layer = 11;
			}
			else
			{
				itsOwnCollider.isTrigger = true;
				gameObject.layer = 12;
				
			}
			
			
		}
}
