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

Expose methods on MutableObject #25

Merged
merged 1 commit into from
Oct 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Assets/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 Assets/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 Assets/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