I am getting this exception object reference not set to an instance of an object. While call this method “StartGameButton()” on a button click.
I have also included punturnmanager and photonview on the same Gameobject where i have attached this method’s script.
Can anyone help me.
public void StartGameButton()
{
this.StartTurn();
}
public void StartTurn()
{
if (PhotonNetwork.IsMasterClient)
{
this.turnManager.BeginTurn();
}
}
