fork download
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4.  
  5. public class BuffManager : MonoBehaviour {
  6. public static BuffManager buffManager;
  7.  
  8. public List<BuffProperties> selectedBuffsList = new List<BuffProperties>();
  9.  
  10. private void Awake()
  11. {
  12. if(buffManager == null)
  13. {
  14. DontDestroyOnLoad(this);
  15. buffManager = this;
  16. }
  17. else if(buffManager != this)
  18. {
  19. Destroy(this);
  20. }
  21. }
  22. }
  23.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,7): error CS0246: The type or namespace name `UnityEngine' could not be found. Are you missing an assembly reference?
prog.cs(5,28): error CS0246: The type or namespace name `MonoBehaviour' could not be found. Are you missing an assembly reference?
prog.cs(8,17): error CS0246: The type or namespace name `BuffProperties' could not be found. Are you missing an assembly reference?
Compilation failed: 3 error(s), 0 warnings
stdout
Standard output is empty