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
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")] |
|
[TextArea(20, 20)] |
|
public string info = ""; |
|
|
|
void OnGUI() |
|
{ |
|
Rect rect = new Rect(0,0, Screen.width / 2, Screen.height); |
|
|
|
GUI.Label(rect, info); |
|
} |
|
} |
|
|
|
} |