-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#builder #603 add default animation & animation binding #289
#builder #603 add default animation & animation binding #289
Conversation
It seems that this is not included in this PR:
|
Although it helps code reuse, it increases the cost of understanding, so I tend not to support this feature. |
@xushiwei Do you mean "Support binding one animation to multiple statuses"? If you prefer to limit that one animation can be bound to at most one status, what if the user want to use the same animation for two differnt statuses? We recommend him to create two animations with the same data? |
The current implementation no longer requires the addition of the Awake method, so it no longer increases the cost of understanding |
const ( | ||
StateDie string = "die" | ||
StateTurn string = "turn" | ||
StateGlide string = "glide" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be state step
goplus/builder#603