Skip to content
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

Update the wiki and Global Event? #18

Closed
takaaptech opened this issue Feb 2, 2018 · 4 comments
Closed

Update the wiki and Global Event? #18

takaaptech opened this issue Feb 2, 2018 · 4 comments

Comments

@takaaptech
Copy link
Contributor

Hi @GaoKaiHaHa !
Please update the wiki and Global Event!
Many thank for this!

@kisence-mian
Copy link
Owner

@takaaptech hi !
Event System

@takaaptech
Copy link
Contributor Author

@GaoKaiHaHa ! Just read it! Very powerful API!
Just want to ask if I have only one-time
GlobalEvent.AddEvent ("GameStart", ReceviceGameStart);
So that will this function
GlobalEvent.RemoveEvent ("GameStart", ReceviceGameStart);
equals to
GlobalEvent.RemoveEvent ("GameStart");
Thank so much!

@kisence-mian
Copy link
Owner

If you can guarantee that you only used AddEvent (string eventKey, EventHandle handle, bool isUseOnce = false) once, then the two methods are the same, but I do not recommend doing this because it will increase the difficulty of reading the code and increase the error may

@takaaptech
Copy link
Contributor Author

Thank so much @GaoKaiHaHa I will try to practice your comment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants