Beispiel #1
0
        private void UpdateState(  )
        {
            if (client == null)
            {
                return;
            }
            Color color = Color.white;

            if (this.client.state.Equals(0))
            {
                color = Color.green;
                //StartCoroutine(WaitingMenu());
            }
            else if (this.client.state.Equals(1))
            {
                color = Color.yellow;
                //StartCoroutine(Serving());
            }

            else if (this.client.state.Equals(2))
            {
                color = Color.red;
                StartCoroutine(eatting());
            }
            else if (this.client.state.Equals(3))
            {
                StartCoroutine(AddGuest());
            }
            Debug.Log(client.ToString());
            image.color = color;
            text.text   = client.ToString();
        }
Beispiel #2
0
        private void UpdateState(  )
        {
            Color color = Color.white;

            if (this.client.state.Equals(0))
            {
                color = Color.green;
            }
            else if (this.client.state.Equals(1))
            {
                color = Color.yellow;
            }
            else if (this.client.state.Equals(2))
            {
                color = Color.red;
                StartCoroutine(eatting());
            }
            image.color = color;
            text.text   = client.ToString();
        }