8 [CreateAssetMenu(menuName =
"Mania Map/Collectable")]
16 public bool EditId {
get => _editId;
set => _editId = value; }
23 public int Id {
get => _id;
set => _id = value; }
25 protected virtual void OnValidate()
An object representing a collectable with a unique ID.
bool EditId
If true, the ID can be edited in the inspector.
Contains methods for creating random ID's.
static int AutoAssignId(int id)
If the specified ID is greater than zero, returns the ID. Otherwise, returns a random positive intege...