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(); });
        }