Display() публичный Метод

public Display ( string info, string buttonInfo, UnityEngine.Events.UnityAction buttonClbk ) : void
info string
buttonInfo string
buttonClbk UnityEngine.Events.UnityAction
Результат void
Пример #1
0
 public void ShowInfoPopup(string info)
 {
     if (infoPanel != null)
     {
         infoPanel.Display(info, "Cancel", null);
     }
 }
Пример #2
0
        public void DisplayIsConnecting()
        {
            var _this = this;

            infoPanel.Display("Connecting...", "Cancel", () => { _this.backDelegate(); });
            backButton.gameObject.SetActive(false);
        }
Пример #3
0
        public void DisplayIsConnecting()
        {
            var _this = this;

            infoPanel.Display("CONNECTING...", "Cancel", () => { this.cancelClbk(); });
            //infoPanel.Display("Connecting...", "Cancel", () => { _this.backDelegate(); });
        }
        public void DisplayIsConnecting()
        {
            var _this = this;

            infoPanel.Display("Connecting...", "Cancel", () => {
                _this.backDelegate();
            });
        }
Пример #5
0
        public void DisplayIsConnecting()
        {
            var _this = this;

            infoPanel.Display("Connecting...", "Cancel", () => { _this.backDelegate(); });
            if (currentModal != null)
            {
                currentModal.SetActive(false);
            }
            currentModal = infoPanel.gameObject;
        }
Пример #6
0
    void Start()
    {
        if (PlayerPrefs.GetInt("kicked") == 1)
        {
            PlayerPrefs.SetInt("kicked", 0);

            infoPanel.Display("Race already started", "close", null);
        }


        if (PlayerPrefs.GetInt("serverDisconnect") == 1)
        {
            PlayerPrefs.SetInt("serverDisconnect", 0);

            infoPanel.Display("The Server was Disconnected", "close", null);
        }
    }
Пример #7
0
        protected virtual void OnDisconnect(UnityEngine.Networking.NetworkConnection conn)
        {
            if (lobbyManager != null)
            {
                LobbyManager.s_Singleton.ShowDefaultPanel();

                infoPanel.Display("Disconnected from server", "Cancel", null);

                lobbyManager.Disconnect();
            }
        }
        public void OnClickLogin()
        {
            bool not_ready = string.IsNullOrEmpty(addressInput.text) || string.IsNullOrEmpty(portInput.text) || string.IsNullOrEmpty(userIdInput.text);

            if (not_ready)
            {
                infoPanel.infoText.fontSize = 30;
                infoPanel.Display("Please fill in the required fields.", "close", null);
                return;
            }

            lobbyManager.networkAddress = addressInput.text;
            PlayerPrefs.SetString("server_ip", addressInput.text);
            PlayerPrefs.SetString("server_port", portInput.text);
            PlayerPrefs.SetString("user_id", userIdInput.text);

            ushort port = ushort.Parse(portInput.text);

            PongManager.instance.StartClient(addressInput.text, port, userIdInput.text);

            lobbyManager.SetServerInfo("Connecting...", addressInput.text);
        }
Пример #9
0
 public void KickedMessageHandler(NetworkMessage netMsg)
 {
     infoPanel.Display("Kicked by Server", "Close", null);
     netMsg.conn.Disconnect();
 }
Пример #10
0
        public void DisplayIsConnecting()
        {
            var _this = this;

            infoPanel.Display("正在连接...", "取消", () => { _this.backDelegate(); });
        }
Пример #11
0
        public void DisplayIsConnecting()
        {
            var _this = this;

            infoPanel.Display("Connection...", "Annuler", () => { _this.backDelegate(); });
        }