You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-2Lines changed: 20 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Add this to the ```Packages\manifest.json```
44
44
Dependencies
45
45
```
46
46
"dependencies": {
47
-
"com.erkerkiii.gum": "1.0.8"
47
+
"com.erkerkiii.gum": "1.0.11"
48
48
}
49
49
```
50
50
@@ -218,6 +218,24 @@ public void UseAspects(IComposable composable)
218
218
}
219
219
```
220
220
221
+
### MonoComposable
222
+
223
+
Composition are also available on Unity `MonoBehaviours `. Deriving from the abstract `MonoComposable` class enables using composition on Unity objects. `MonoComposable` class handles creation of composable, deriving classes only responsible for implementing the `GetAspects()` absrtact method to assign aspects.
224
+
225
+
```CSharp
226
+
publicclassFooMonoComposable : MonoComposable
227
+
{
228
+
privateint_value=12;
229
+
230
+
protectedoverrideIAspect[] GetAspects() // Deriving class implements GetAspects method.
0 commit comments