Skip to content

Commit

Permalink
Merge pull request #23 from techno-dwarf-works/feature/refactoring
Browse files Browse the repository at this point in the history
Version 0.1.16
  • Loading branch information
uurha committed Jul 25, 2024
1 parent eaeb1e8 commit 6c74173
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Runtime/Modules/CacheModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public void CacheState(TState state)
return;
}

if (_stateLocator.ContainsElement(state))
{
return;
}

var type = state.GetType();
_stateLocator.Remove(type);
_stateLocator.Add(type, state);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "com.tdw.better.statemachine",
"displayName": "Better State Machine",
"version": "0.1.15",
"version": "0.1.16",
"unity": "2021.3",
"description": " ",
"dependencies": {
"com.tdw.better.internal.core": "0.0.2",
"com.tdw.better.commons": "0.0.22",
"com.tdw.better.commons": "0.0.26",
"com.tdw.better.locators": "0.1.12",
"com.tdw.better.conditions": "0.0.3"
},
Expand Down

0 comments on commit 6c74173

Please sign in to comment.