示例#1
0
    void HandleEndGame()
    {
        timeRemaining
        .Where((x) => x == 0)
        .Subscribe((x) => {
            currentView.SetValueAndForceNotify("endScreen");
        });

        deliveriesRemaining
        .Where((x) => x == 0)
        .Subscribe((x) => {
            currentView.SetValueAndForceNotify("endScreen");
        });
    }
示例#2
0
        private void ParseMessages(byte[] bytes)
        {
            var msg = System.Text.Encoding.UTF8.GetString(bytes);

            Debug.Log("[UTH] Server message: " + msg);

            _serverJson.SetValueAndForceNotify(msg);
        }
示例#3
0
 /// <summary>다음 턴으로 넘기는 함수 </summary>
 public void NextTurn()
 {
     Debug.Log("next turn");
     PlayerNowTurn.SetValueAndForceNotify(PlayerTurn.Peek());
     //PlayerNowTurn.Value = PlayerTurn.Peek();
     TurnNowTime        = TurnTimeOut;
     IsFinishTurn.Value = false;
     NetworkSystem.GetInstance().SendServer("NEXT-TURN");
 }
 private void OnManagerSelected(object name)
 {
     ManagerName.SetValueAndForceNotify((string)name);
     Initialize();
 }
示例#5
0
 public void SetAlert(string message)
 {
     alertMessage.SetValueAndForceNotify(message);
 }