Hi vkhavin,
Welcome to our community! 
Is the OnReplayLevel method public? Did you save your script? Sometimes, the script does not get saved properly even if you pressed Ctrl + S. Try to save it again.
See also:
- Forum User Guides : How to mark a topic as solved