Ejemplo n.º 1
0
 public void OnUpdateAnotherDealingState(DealingState state)
 {
     if (uiDealing == null)
     {
         return;
     }
     uiDealing.UpdateAnotherDealingState(state);
 }
Ejemplo n.º 2
0
        public void UpdateDealingState(DealingState state)
        {
            if (dealingState != state)
            {
                dealingState = state;
                switch (dealingState)
                {
                case DealingState.None:
                    Hide();
                    break;

                case DealingState.Dealing:
                    if (onStateChangeToDealing != null)
                    {
                        onStateChangeToDealing.Invoke();
                    }
                    break;

                case DealingState.LockDealing:
                    if (onStateChangeToLock != null)
                    {
                        onStateChangeToLock.Invoke();
                    }
                    break;

                case DealingState.ConfirmDealing:
                    if (onStateChangeToConfirm != null)
                    {
                        onStateChangeToConfirm.Invoke();
                    }
                    break;
                }
                if (dealingState == DealingState.LockDealing && anotherDealingState == DealingState.LockDealing)
                {
                    if (onBothStateChangeToLock != null)
                    {
                        onBothStateChangeToLock.Invoke();
                    }
                }
            }
        }
 public virtual void RequestUpdateAnotherDealingState(DealingState state)
 {
     CallNetFunction(NetFuncUpdateAnotherDealingState, ConnectionId, (byte)state);
 }
Ejemplo n.º 4
0
 public bool RequestUpdateAnotherDealingState(DealingState state)
 {
     CallNetFunction(NetFuncUpdateAnotherDealingState, ConnectionId, (byte)state);
     return(true);
 }