You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
491 B
24 lines
491 B
9 years ago
|
using UnityEngine;
|
||
|
using System.Collections;
|
||
|
|
||
|
namespace Fungus
|
||
|
{
|
||
|
|
||
|
/// <summary>
|
||
|
/// Displays information text at the top left of the screen.
|
||
|
/// </summary>
|
||
|
public class InfoText : MonoBehaviour
|
||
|
{
|
||
|
[Tooltip("The information text to display")]
|
||
9 years ago
|
[TextArea(20, 20)]
|
||
9 years ago
|
public string info = "";
|
||
|
|
||
|
void OnGUI()
|
||
|
{
|
||
|
Rect rect = new Rect(0,0, Screen.width / 2, Screen.height);
|
||
|
|
||
|
GUI.Label(rect, info);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|