예제 #1
0
        public void SetState(JoystickPlayerState state)
        {
            this.background.SetState(state);
            this.icon.SetState(state);
            this.message.SetState(state);

            this.state = state;
        }
예제 #2
0
        public void SetState(JoystickPlayerState state)
        {
            switch (state)
            {
            case JoystickPlayerState.Connected:
                this.text.text = m_Connected;
                break;

            case JoystickPlayerState.Disconnected:
                this.text.text = m_Disconnected;
                break;

            case JoystickPlayerState.Selected:
                this.text.text = m_Selected;
                break;
            }
            this.state = state;
        }
예제 #3
0
        public void SetState(JoystickPlayerState state)
        {
            switch (state)
            {
            case JoystickPlayerState.Connected:
                this.image.color = m_Active;
                break;

            case JoystickPlayerState.Disconnected:
                this.image.color = m_Inactive;
                break;

            case JoystickPlayerState.Selected:
                this.image.color = m_Selected;
                break;
            }
            this.state = state;
        }
예제 #4
0
 public void SetPanel(int index, JoystickPlayerState state)
 {
     panels[index].SetState(state);
 }