private void CheckKeys() { if (Input.GetKeyDown(FullscreenKey)) { display.ToFullscreen(gameObject.transform as RectTransform); } if (Input.GetKeyDown(WindowedKey)) { display.ToNormal(); } if (Input.GetKeyDown(TogglePlayKey)) { ToggleIsPlaying(); } }
void FullScreen() { if (_fullScreen.isOn) { display.ToFullscreen(gameObject.transform as RectTransform); _fullScreen.GetComponent <Image>().sprite = _fullScreen.GetComponent <BehaviourSprite>()._selection; } else { display.ToNormal(); _fullScreen.GetComponent <Image>().sprite = _fullScreen.GetComponent <BehaviourSprite>()._default; } }