using UnityEngine;
using UnityEngine.UI;
using System.Collections;

public class ModeText : MonoBehaviour {

	public string modeOneText;
	public string modeTwoText;
	//private string text;
	private UnityEngine.UI.Toggle toggleMode1;
	private UnityEngine.UI.Text modeName;

	// Use this for initialization
	void Start () {
		toggleMode1 = GameObject.Find ("ToggleMode1").GetComponent<UnityEngine.UI.Toggle>();
		modeName = GetComponent<Text>();
		//text = GetComponent<Text> ();
	}
	
	// Update is called once per frame
	void Update () {
		if (toggleMode1.isOn == true) { 
			modeName.text = modeOneText;
	} else {
			modeName.text = modeTwoText;
		}
	}
}
