Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function RotationAnimation ()
- {
- var anim: Animator = outTwo.transform.gameObject.GetComponent(Animator);
- if (rotCount == 1)
- {
- anim.SetBool("rotate360", false);
- anim.SetBool("rotate90", true);
- }
- else if (rotCount == 2)
- {
- anim.SetBool("rotate180", true);
- anim.SetBool("rotate90", false);
- }
- else if (rotCount == 3)
- {
- anim.SetBool("rotate270", true);
- anim.SetBool("rotate180", false);
- }
- else if (rotCount == 4)
- {
- anim.SetBool("rotate360", true);
- anim.SetBool("rotate270", false);
- rotCount = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement