Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
To repozytorium jest zarchiwizowane. Możesz wyświetlać pliki i je sklonować, ale nie możesz do niego przepychać zmian lub otwierać zgłoszeń/Pull Requestów.

README.md 2.9KB

10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
10 lat temu
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. coa4u
  2. =====
  3. ## Cocos2d-like Actions for Unity3d
  4. Unity3d is a very good game engine. It's almost perfect for quick prototyping.
  5. After switching from Cocos2D to Unity3d, i'm still missing just one cocos's feature - actions.
  6. It's a great combination of simplicity and flexibility, and i haven't found the suitable replacement for it.
  7. Since actions are quite simple, i implemented them myself.
  8. ### How to use
  9. 1. Place the coa4u folder from Assets/scripts in your Assets/scripts folder.
  10. 2. Then attach the Actor.cs script to the object you want.
  11. 3. See the ActorSampleActions.cs class, if you need examples.
  12. You can also add actions on the fly, by using the AttachAction method of the Actor class.
  13. ### Included actions (ready and WIP)
  14. All actions are capable to work both in 3D (use Vector3) and 2D (use Vector2) scenes.
  15. Base actions
  16. - [x] Sequence
  17. - [x] Parallel
  18. - [x] Repeat and Loop *implemented in one action*
  19. *Every reversable action has a reverse() method. So, no plans for Reverse action right now.*
  20. Interval actions
  21. - [x] Delay and RandomDelay *implemented in one action*
  22. - [x] MoveTo
  23. - [x] MoveBy
  24. - [x] RotateTo
  25. - [x] RotateBy
  26. - [x] ScaleTo
  27. - [x] ScaleBy
  28. - [x] BezierAbs
  29. - [x] BezierRel
  30. - [x] JumpTo *uses Bezier action to move the object*
  31. - [x] JumpBy *uses Bezier action to move the object*
  32. - [x] Blink
  33. *if you want to manipulate alpha with the following actions, your material should support transparency (i.e. use Transparent shader)*
  34. - [x] TintBy
  35. - [x] TintTo
  36. - [x] FadeOut
  37. - [x] FadeIn
  38. - [x] FadeTo
  39. - [x] FadeBy
  40. Instant actions
  41. - [x] Place *renamed to SetPlace*
  42. - [x] CallFunc *renamed to SendMessage*
  43. - [x] Hide
  44. - [x] Show
  45. - [x] ToggleVisibility
  46. There's no plans for 3DGrid actions. You can use the 3D actions instead.
  47. ### Some additional actions
  48. Base actions
  49. - [x] Random - randomly choises and does one action from the given list.
  50. Interval actions
  51. - [ ] Follow - follows another actor with the given speed for the given amount of time (of forever).
  52. - [ ] LookAt - rotates the object to look at the given actor.
  53. - [x] SkewBy - skews the mesh by given values.
  54. - [ ] SkewTo - skews the mesh to the given values.
  55. Instant actions
  56. - [x] SetRotation - instantly rotates the object to the given euler angles.
  57. - [x] SetTint - instantly tints the object to the given color.
  58. - [x] SetDirection - instantly rotates the object to look at the given actor.
  59. - [ ] Stop - stops all actions for this object.
  60. ### Future plans
  61. After completing these actions, i'm going to add some more to the list.
  62. ## License
  63. Just like Cocos2D, this code licensed under the [MIT License](http://en.wikipedia.org/wiki/MIT_License)
  64. ## Help and donations
  65. I'm not doing it to make profit, but if you want, [you can send me a couple of bucks via PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z64675TKXFRFU).
  66. Also, if you'll write some action based on mine, feel free to send it to me, if you want me to add it to the library. I'll put your name on this page.