private void Start()
 {
     theInputIndexController  = FindObjectOfType <InputIndexController>();
     theErrorController       = FindObjectOfType <ErrorController>();
     theInputReaderController =
         FindObjectOfType <InputReaderController>();
     theGamepadReader  = FindObjectOfType <GamepadReader>();
     theKeyboardReader = FindObjectOfType <KeyboardReader>();
     buttonColors      = GetComponentInParent <Button>().colors;
 }
示例#2
0
 private void GetInputReader()
 {
     theInputReaderController =
         GetComponentInParent <InputReaderController>();
 }