PunTurnManager issue
Hey all,
apparently command BeginTurn() doesn't work for me.
What am i doing wrong?
apparently command BeginTurn() doesn't work for me.
public PunTurnManager turnManager; void Start() { PV = GetComponent<PhotonView>(); inputEnabled = false; this.turnManager = this.gameObject.AddComponent<PunTurnManager>(); this.turnManager.TurnManagerListener = this; // duration of the turn turnManager.TurnDuration = 10f; if (RoomController.roomController.isGameLoaded) { GameBegins(); } } public void GameBegins() { Debug.Log("Game Started."); Debug.Log("Turn " + turnManager.Turn); if (PhotonNetwork.IsMasterClient) { turnManager.BeginTurn(); Debug.Log(PhotonNetwork.CurrentRoom.GetTurn()); } }Last log results with "0"
What am i doing wrong?
0
Comments
Sorry for the delay in the answer.
So how long should it take?
Apparently when i put that Log into Update() it's still 0 after quite long time.
That's the error description:
BeginTurn and SetTurn work fine in my case. I don't see how a NotImplementedException can happen. We just use simple C# extension methods here. Nothing special.
Your code will run BeginTurn whenever Start() gets called. Make sure the client is already in the room.
I double checked with log in GameBegins() function in case for random disconnections through the way and there still 2 players in the room.
The NotImplemented exception is also something that should not be possible.
Please update your PUN from the Asset Store again. Maybe something broke.
Somehow my GameManager.sc PhotonView manual observe didn't work and when i switched it to auto it started working.
Thanks for all tips.