DemoGUIMessage.cs 353 B

123456789101112131415161718
  1. using UnityEngine;
  2. using System.Collections;
  3. namespace RootMotion {
  4. // Just for displaying a GUI text in the Game View.
  5. public class DemoGUIMessage : MonoBehaviour {
  6. public string text;
  7. public Color color = Color.white;
  8. void OnGUI() {
  9. GUI.color = color;
  10. GUILayout.Label(text);
  11. GUI.color = Color.white;
  12. }
  13. }
  14. }