Skip to content
This repository was archived by the owner on Aug 10, 2021. It is now read-only.

Commit 10ecf6b

Browse files
authored
Make Unity event methods virtual, update package version, update CHANGELOG.md (#25)
1 parent fd50dd9 commit 10ecf6b

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.1.0] - 2020-10-24
8+
9+
### Changed
10+
- Exposed `OnValidate` and `OnEnable` methods to children of `MutableObject`.
11+
712
## [1.0.0] - 2020-10-13
813

914
### Changed

Runtime/MutableObjects/Generic/MutableObject.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ public abstract class MutableObject : ScriptableObject, IMutableObject
1212

1313
public abstract void ResetValues();
1414

15-
private void OnValidate()
15+
protected virtual void OnValidate()
1616
{
1717
ResetValues();
1818
}
1919

20-
private void OnEnable()
20+
protected virtual void OnEnable()
2121
{
2222
ResetValues();
2323
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Chark",
66
"url": "https://chark.io"
77
},
8-
"version": "1.0.0",
8+
"version": "1.1.0",
99
"unity": "2019.4",
1010
"description": "Provides Game Events and their respective listeners. Includes Mutable Scriptable Objects for injecting and using shared data.",
1111
"samples": [

0 commit comments

Comments
 (0)