fork download
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using System;
  5.  
  6. public class ImagesManager : MonoBehaviour, IGameManager
  7. {
  8. public ManagerStatus status
  9. {
  10. get;
  11.  
  12. private set;
  13. }
  14.  
  15. private NetworkService _network;
  16.  
  17. private Texture2D _webImage;
  18.  
  19. public void Startup(NetworkService service)
  20. {
  21. Debug.Log("Images manager starting...");
  22.  
  23. _network = service;
  24.  
  25. status = ManagerStatus.Started;
  26. }
  27.  
  28. public void GetWebImage(Action<Texture2D> callback)
  29. {
  30. if(_webImage == null)
  31. {
  32. StartCoroutine(_network.DownloadImage(callback));
  33. }
  34.  
  35. else
  36. {
  37. callback(_webImage);
  38. }
  39. }
  40.  
  41. // Use this for initialization
  42. void Start ()
  43. {
  44.  
  45. }
  46.  
  47. // Update is called once per frame
  48. void Update ()
  49. {
  50.  
  51. }
  52. }
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(6,30): error CS0246: The type or namespace name `MonoBehaviour' could not be found. Are you missing an assembly reference?
prog.cs(6,45): error CS0246: The type or namespace name `IGameManager' could not be found. Are you missing an assembly reference?
prog.cs(8,12): error CS0246: The type or namespace name `ManagerStatus' could not be found. Are you missing an assembly reference?
prog.cs(15,13): error CS0246: The type or namespace name `NetworkService' could not be found. Are you missing an assembly reference?
prog.cs(17,13): error CS0246: The type or namespace name `Texture2D' could not be found. Are you missing an assembly reference?
prog.cs(19,25): error CS0246: The type or namespace name `NetworkService' could not be found. Are you missing an assembly reference?
prog.cs(28,36): error CS0246: The type or namespace name `Texture2D' could not be found. Are you missing an assembly reference?
Compilation failed: 8 error(s), 0 warnings
stdout
Standard output is empty