How to run a function once a scene is loader from another?

I have two different scenes, a “Menu” scene and “Game” scene. When I click “Play” in the “Menu” scene I want a function to be run in the “Game” scene which would start the game. But I don’t know how. I used both Start and Awake method but none of them works.

Did you put the function in a MonoBehavior and attach it to a GameObject in the next scene?