justifun
SingelActions are actions that are only used once like jump or fire.
After you've sent them using CrowdGaming.SendActionsToMainGame or SendActionsTo a singel action will be set to zero, automatically. The condition Has new data to send will check if the current actions string (action1+action2+action3+action4) is different from the lastActionStringSent OR is any singelActionIsActive.
So with normal actions you constantly have to feed the game is you want to change the value but with singelActions you only send 1 (on) and then it resets it self. I wanted to spare the sending of a full actionsString then a singelAction went from 1 to 0 that's why I have designed it like this.
This optimization and sending delta is mostly important when dealing with games like platformers etc. But with turn based game it is not important at all.
For the two example controllers in the beta package I use:
* Action1 = 1 (left), Action2 = 1 (right), SingelAction1 = 1 (jump)
* Action1 = 0 - 360 (angle), SingelAction1 (shot)
Let me know if you have a case where you need to send more actions, in my mind it's hard when using the smart phone as the controller to have loads and loads of buttons, I think it needs to be pretty simple.