Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class PickUpShit : MonoBehaviour
  5. {
  6. public string whattopick;
  7.  
  8. GUIContent content;
  9.  
  10. void Start()
  11. {
  12. content = new GUIContent("Pick up", whattopick, "[E]");
  13. }
  14.  
  15. void OnGUI()
  16. {
  17. GUI.Box(new Rect(1000, 600, 100, 20), content);
  18. }
  19. }
  20.  
  21. Assets/Scripts/PickUpShit.cs(12,19): error CS1502: The best overloaded method match for `UnityEngine.GUIContent.GUIContent(string, UnityEngine.Texture, string)' has some invalid arguments
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement