public override void AskForAction(ActionType actionType, object callbackObject, InfoDescription error) { this.callbackObject = callbackObject; unityPlayer.TurnTimeoutHandler.StartTurnTimer(this, actionType, callbackObject); if (error == InfoDescription.NoError) { // NO ERROR HandleActionRequest(actionType); TurnArrowController.SetActive(GetPlayersSeat()); } else { // SHOW ERROR HandleError(error); HandleActionRequest(actionType); TurnArrowController.SetActive(GetPlayersSeat()); LogManager.Log(error.ToString("G")); } }
public override void AskForAction(ActionType actionType, object callbackObject, InfoDescription error) { unityComputer.TurnTimeoutHandler.StartTurnTimer(this, actionType, callbackObject); LogManager.Log(unityComputer.transform.name + " : " + actionType.ToString("G")); staticCallBackObject = callbackObject; if (error == InfoDescription.NoError) { // NO ERROR TurnArrowController.SetActive(UIPlayer.GetRelativePlayerSeat(base.GetPlayersSeat())); awaitingAction = actionType; unityComputer.WaitForAction(); } else { // SHOW ERROR TurnArrowController.SetActive(UIPlayer.GetRelativePlayerSeat(GetPlayersSeat())); LogManager.Log(error.ToString()); } }