예제 #1
0
 public void RespondChallenge(bool response)
 {
     if (!response)
     {
         BlockingPanel.Hide();
         Toast.I.Show(Translatable.GetText("player_rejected"));
     }
     else
     {
         BlockingPanel.HideDismiss();
         //panel is removed at start
         Toast.I.Show(Translatable.GetText("creating_room"));
     }
 }
예제 #2
0
    /// <summary>
    /// uses BlockingPanel
    /// </summary>
    public async UniTask Start(UniTask operation)
    {
        await BlockingPanel.Show();

        try
        {
            await operation;
            BlockingPanel.Hide();
        }
        catch (BadUserInputException) //todo test if you can get bad user input exc here
        {
            BlockingPanel.Done("operation is not allowed");
            throw;
        }
    }
예제 #3
0
    public void StartRoomRpc(List <int> handCardIds, List <int> groundCardIds)
    {
        CoreGameplay.I.BeginGame(handCardIds, groundCardIds);

        BlockingPanel.Hide();
    }