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

Commit

Permalink
Make Unity event methods virtual, update package version, update CHAN…
Browse files Browse the repository at this point in the history
…GELOG.md (#25)
  • Loading branch information
Edvinas01 authored Oct 24, 2020
1 parent fd50dd9 commit 10ecf6b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.0] - 2020-10-24

### Changed
- Exposed `OnValidate` and `OnEnable` methods to children of `MutableObject`.

## [1.0.0] - 2020-10-13

### Changed
Expand Down
4 changes: 2 additions & 2 deletions Runtime/MutableObjects/Generic/MutableObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ public abstract class MutableObject : ScriptableObject, IMutableObject

public abstract void ResetValues();

private void OnValidate()
protected virtual void OnValidate()
{
ResetValues();
}

private void OnEnable()
protected virtual void OnEnable()
{
ResetValues();
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Chark",
"url": "https://chark.io"
},
"version": "1.0.0",
"version": "1.1.0",
"unity": "2019.4",
"description": "Provides Game Events and their respective listeners. Includes Mutable Scriptable Objects for injecting and using shared data.",
"samples": [
Expand Down

0 comments on commit 10ecf6b

Please sign in to comment.