So I just purchased the Gunman pack a day or two ago to mess with in Unity. I was just really curious how things like animation combining, aiming, and overall character controlling was done in this.
Before I proceeded with my project, I loaded up the asset pack scene, and attempted to duplicate the Gunman a number of time just to see how performance was on mobile. I modified the touch script so that all the characters would shoot at the same touch point.
I was getting a weird bug where sometimes the gunman would perform perfectly. I'd touch the screen, the arms would rotate, a shot would be fired towards the touch point. Although, seemingly randomly, some of the duplicated gunman wouldn't follow that logic. Instead, they would, shoot, then rotate to point their weapons at the touch point. I spent all day trying to figure out why sometimes they'd fire perfectly, and other times they would seem to fire before rotating their arms.
It turns out that simply highlighting the Gunman object and duplicating said Gunman would cause any of the duplicate gunman to potentially misbehave. However, if I dragged in any number of prefab gunman from my Assets folder, they would all behave absolutely perfectly. I'm not sure if this has something to do with Unity or some sort of sync issue with the gameobjects and Spine skeleton data or what.
Any thoughts? I don't foresee this every being a problem. Just curious if there was an explanation.
Strike that. I'm handling player states in a different way then the example, and I guess my code is somehow triggering the Fire( ) call before AimPivot completes it rotation.