Advertisement
Guest User

Note Script

a guest
Sep 19th, 2012
1,334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Note : MonoBehaviour {
  5.  
  6. //The Skin/Background of the GUIStyle
  7. public GUISkin mycustomSkin;
  8. //The Text Of The Note
  9. public string Text = "Insert Your Text Here!";
  10.  
  11. void Start () {
  12.  
  13. //AutoSet the Name
  14. transform.name = "Note";
  15.  
  16. //If there is no collider on the note add one
  17. if (collider == null) {
  18.  
  19. Debug.LogError ("No Collider On Note " + name + ". Add A Collider!");
  20.  
  21. }
  22.  
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement