fork download
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Sirenix.OdinInspector;
  5. public enum PieceName { Null=0, r=1, g=2, b=3, c=4, m=5, y=6 }
  6.  
  7. [CreateAssetMenu(fileName = "Level", menuName = "ScriptableObjects/LevelData", order = 1)]
  8. public class LevelData : SerializedScriptableObject
  9. {
  10.  
  11. [OnValueChanged("NewSize")]
  12. [Range(4,10)]
  13. public int boardSize = 8;
  14.  
  15. [GUIColor(.7f, 1f, .6f, 1f)]
  16. [TabGroup("Solution Matrix")]
  17. public PieceName[,] solution;
  18.  
  19. protected virtual void NewSize()
  20. {
  21. if(solution==null)
  22. solution = new PieceName[boardSize, boardSize];
  23. if (boardSize!=solution.GetLength(0))
  24. solution = new PieceName[boardSize, boardSize];
  25. }
  26. }
  27.  
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(4,7): error CS0246: The type or namespace name `Sirenix' could not be found. Are you missing an assembly reference?
prog.cs(8,26): error CS0246: The type or namespace name `SerializedScriptableObject' could not be found. Are you missing an assembly reference?
Compilation failed: 3 error(s), 0 warnings
stdout
Standard output is empty