I have two scripts. First script is named Launcher
. It's derived from Photon.PunBehaviour
and designed to work only with PUN methods. Also I have another script that is named LauncherUI
and derived from MonoBehaviour
.
Launcher
has a reference of LauncherUI
, so whenever something happens in the Launcher
, it can change the UI by calling some of LauncherUI
methods.
When a user joins to a room, public override void OnJoinedRoom()
from the Launcher
is called, but it also tries to call public void OnJoinedRoom(int[] playersID)
from the LauncherUI
, and this causes the next error
MissingMethodException: The best match for method OnJoinedRoom has some invalid parameter.
So why does the PUN call the two methods, even if one of them is in another class that isn't derived from Photon.PunBehaviour
?