private void Start()
 {
     errorWindow = GameObject.Find("Popup Windows").
                   GetComponentInChildren <ErrorWindow>(true).gameObject;
     errorText         = errorWindow.GetComponentInChildren <TextMeshProUGUI>();
     uiButtons         = GameObject.Find("Main UI Buttons");
     theKeyboardReader = FindObjectOfType <KeyboardReader>();
     theGamepadReader  = FindObjectOfType <GamepadReader>();
 }
 private void Start()
 {
     theInputIndexController  = FindObjectOfType <InputIndexController>();
     theErrorController       = FindObjectOfType <ErrorController>();
     theInputReaderController =
         FindObjectOfType <InputReaderController>();
     theGamepadReader  = FindObjectOfType <GamepadReader>();
     theKeyboardReader = FindObjectOfType <KeyboardReader>();
     buttonColors      = GetComponentInParent <Button>().colors;
 }
예제 #3
0
 void updateGamepadList()
 {
     _vm.XIAndGamepad.UpdateContents(GamepadReader.GetDevices());
 }