kwahu/polcongame — pull request #1 by robertnorenberg (2014-07-27 11:15:33+00:00)
Title: Stateobjectsexamples

A few examples of how to use `StateObject`s and `Switch`es in `arena test.unity` scene.

Basically for flexibility I've used transform instead of animations.

Each `StateObject` might have a number of `States` that is 2 vectors - `localPosition` (translate) and `localEulerAngles` (rotate). with `Switch` you can force `StateObject` to change the `State` to the next one (looped).

Each `Switch` might point to any number of `targets` (`StateObjects`) as well as multiple `Switch`es might point to the same `target`.