Skip to content

Commit

Permalink
Add #if..#endif checks (oops)
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Dec 10, 2024
1 parent e60698d commit 75d6fec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- `DialogueRunner.CommandDispatcher` is now set up on first access, rather than in `Awake`.
- This allows other objects to work with the command dispatcher (for example, registering new methods) in their `Awake` methods, even if their `Awake` methods run before `DialogueRunner`'s.
- `YarnCommand` and `YarnFunction` commands now allow including `.` characters in their names.
- Fixed an issue in SerializableDictionary.cs that caused builds to fail.

### Changed

Expand Down
2 changes: 2 additions & 0 deletions Runtime/SerializableDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ protected override void SetValue(TValueStorage[] storage, int i, TValue value)
}
}

#if UNITY_EDITOR
namespace Yarn.Unity.Editor
{

Expand Down Expand Up @@ -872,3 +873,4 @@ public override float GetPropertyHeight(SerializedProperty property, GUIContent
}
}
}
#endif

0 comments on commit 75d6fec

Please sign in to comment.