Demos not compiling.

I have a existing project (unity 2018.3.13f) that I imported PUN2-FREE into for testing. After the import I get the following errors (46) :

AsteroidsGameManager.cs(128,30): error CS0721: 'Player': static types cannot be used as parameters
AsteroidsGameManager.cs(128,30): error CS0115: 'AsteroidsGameManager.OnMasterClientSwitched(Player)': no suitable method found to override

When I create a new project and import there is no error. I copied the Photon folder from this project into the existing one, but end up with the errors again.

Any ideas what I can try ?


  • This was a problem not relating to Photon. I had another asset containing another Player class