Пример #1
0
    void OnPlayerListChanged(EPlayerController p, bool isRemove)
    {
        OnLogGame(string.Format("[FF0000]{0}[-]\n", "Người chơi \"" + p.username + "\" đã " + (isRemove ? "rời khởi bàn chơi." : "tham gia bàn chơi.")));
        UITabbarPanel manager = Array.Find <UITabbarPanel>(controller.tabbarPanel, s => s.GetComponent <GPManagerView>() != null);

        manager.GetComponent <GPManagerView>().OnPlayerListChanged(p, isRemove);
    }
Пример #2
0
    private void OnLogGame(string log)
    {
        Debug.Log("On write log phom.......");
        UITabbarPanel info = Array.Find <UITabbarPanel>(controller.tabbarPanel, s => s.GetComponent <GPInformationViewPhom>() != null);

        info.GetComponent <GPInformationViewPhom>().NewLogWhenOpen(log);
    }
Пример #3
0
    /// <summary>
    /// Xử lý khi request lên server để lấy về danh sách những người đang online trong Lobby ngoài
    /// </summary>
    private void OnPluginMessageOnProcess(string command, string action, Electrotank.Electroserver5.Api.EsObject eso)
    {
        UITabbarPanel manager = Array.Find <UITabbarPanel>(controller.tabbarPanel, s => s.GetComponent <GPInviteUserView>() != null);

        manager.GetComponent <GPInviteUserView>().OnPluginMessageOnProcess(command, action, eso);
    }
Пример #4
0
    void OnSwapSlot(EPlayerController[] listPlayer)
    {
        UITabbarPanel manager = Array.Find <UITabbarPanel>(controller.tabbarPanel, s => s.GetComponent <GPManagerView>() != null);

        manager.GetComponent <GPManagerView>().OnSwapSlot(listPlayer);
    }
Пример #5
0
    private void OnLogGame(string log)
    {
        UITabbarPanel info = Array.Find <UITabbarPanel>(controller.tabbarPanel, s => s.GetComponent <GPInformationView>() != null);

        info.GetComponent <GPInformationView>().NewLogWhenOpen(log);
    }
Пример #6
0
    private void OnLoadPlayerWaiting()
    {
        UITabbarPanel manager = Array.Find <UITabbarPanel>(controller.tabbarPanel, s => s.GetComponent <GPManagerView>() != null);

        manager.GetComponent <GPManagerView>().DrawListWaitingPlayer();
    }
Пример #7
0
    /// <summary>
    /// Xủ lý khi có sự thay đổi về danh sách người online, thêm người mới vào lobby, có người thoát ra khỏi lobby
    /// </summary>
    void OnPluginUpdateUserOnline(string command, string action, EsObject eso)
    {
        UITabbarPanel manager = Array.Find <UITabbarPanel>(controller.tabbarPanel, s => s.GetComponent <GPInviteUserView>() != null);

        manager.GetComponent <GPInviteUserView>().OnPluginUpdateUserOnline(command, action, eso);
    }