Pun 2 - override doesn't work


I'm just starting my journey with Photon Pun 2 in Unity. I have set up everything like in this tutorial:

For some reason when I try to create override function it gives me errors, that VSC cannot find funtion to override.

Libs I'm using:

using Photon.Pun;

using Photon.Realtime;

Part of code where I can't override functions:

    public override void OnConnectedToMaster()


        Debug.Log("You have joined Master");



    public override void OnJoinedLobby()


        Debug.Log("You have joined");


Anyone know what might be an issue? I have looked over google, but no solution found... :(

Thanks in advance for help!

Best Answer