Lightweight MVC tools for games in Unity 3D C#.
Convenient and portable:
- Pause button.
- Set animation.
- Set text.
- Play sound.
- Listen to keys and buttons.
Because the models are separated from the view, the models are easy to test. http://www.gamasutra.com/view/news/164363/Indepth\_Unit\_testing\_in\_Unity.php
Prefer sealed classes, which:
- Prevents deep inheritance. http://programmers.stackexchange.com/questions/137687/why-is-subclassing-too-much-bad-and-hence-why-should-we-use-prototypes-to-do-aw
- Speeds up method calls. https://blogs.unity3d.com/2016/07/26/il2cpp-optimizations-devirtualization/
git submodule add [email protected]:ethankennerly/UnityToykit.git Assets/Scripts/UnityToykit
git submodule add https://github.com/ethankennerly/UnityToykit.git Assets/Scripts/UnityToykit
Unity 5.2 or lower
Unity 5.3 builds in NUnit.
On Unity 5.2 or lower, you can install UnityTestTools from the Asset Store. I had these included in an earlier commit. You could download those which are smaller:
Example Game Jam
Older version with a framework:
Add It Up
Made in one day for 64x64 pixel jam.
For example of setting text, see: