💠Scriptables
Last updated
Last updated
Animal Controller and HAP is based on Scriptable Architecture framework, the asset uses modular features that you can add or remove to perfectly fit the unique needs of your projects.
All Scriptables Assets can be used you can reference them anywhere in your project, without having to worry about dependencies.
They are based on Unite Austin 2017 - Game Architecture with Scriptable Objects by Ryan Ripple.
It synthesizes core unity objects like float, integer or boolean values.
That way different scripts can share the same variable.
E.g. The Rider Component shares the CanDismount bool variable with the Malbers Input Dismount Active variable.
That way the Dismount Input will be enabled only when the Rider Set CanDismount to true.
Sharing the same variables is very useful, but it also may create a problem with multiple characters using the same values.
To fix that you can choose if you can use a constant value or a scriptable variable