using UnityEngine;
using System.Collections;

public class ControlGUI : MonoBehaviour {
	public Player script;
	public Texture2D boat, water; 
	private int state = 0;
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		state = script.state;
		if(state == (int)playerState.SWIMMING)
			this.guiTexture.texture = water;
		else
			this.guiTexture.texture = boat;
	}
}
