fork download
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class WebLoadingBillboard : MonoBehaviour
  6. {
  7. public void Operate()
  8. {
  9. Managers.Images.GetWebImage(OnWebImage);
  10. }
  11.  
  12. private void OnWebImage(Texture2D image)
  13. {
  14. GetComponent<Renderer>().material.mainTexture = image;
  15. }
  16.  
  17. // Use this for initialization
  18. void Start ()
  19. {
  20.  
  21. }
  22.  
  23. // Update is called once per frame
  24. void Update ()
  25. {
  26.  
  27. }
  28. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(3,7): error CS0246: The type or namespace name `UnityEngine' could not be found. Are you missing an assembly reference?
prog.cs(5,36): error CS0246: The type or namespace name `MonoBehaviour' could not be found. Are you missing an assembly reference?
prog.cs(12,29): error CS0246: The type or namespace name `Texture2D' could not be found. Are you missing an assembly reference?
Compilation failed: 3 error(s), 0 warnings
stdout
Standard output is empty