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

Add support for method overloading #30

Closed
exodrifter opened this issue Aug 3, 2017 · 0 comments
Closed

Add support for method overloading #30

exodrifter opened this issue Aug 3, 2017 · 0 comments

Comments

@exodrifter
Copy link
Owner

Add support for method overloading for bind methods.

For example, the following should be possible:

rumor.Bind("play", (string name) => {
    Foo.Play(Resources.Load<AudioClip>(filename));
});
rumor.Bind("play", (string name, float volume) => {
    Foo.Play(Resources.Load<AudioClip>(filename), volume);
});

However, Rumor fails with an ArgumentException

ArgumentException: An element with the same key already exists in the dictionary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant