using UnityEngine;
using System.Collections;

public class CameraMenu : MonoBehaviour {

	public Texture2D[] fondTexture;
	public GUITexture fond;
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		if(Game.instance.state==Game.STATES.MENU)
			fond.texture=fondTexture[0];
		if(Game.instance.state==Game.STATES.UPGRADE)
			fond.texture=fondTexture[1];
		
	}
}
