示例#1
0
 private void CheckKeys()
 {
     if (Input.GetKeyDown(FullscreenKey))
     {
         display.ToFullscreen(gameObject.transform as RectTransform);
     }
     if (Input.GetKeyDown(WindowedKey))
     {
         display.ToNormal();
     }
     if (Input.GetKeyDown(TogglePlayKey))
     {
         ToggleIsPlaying();
     }
 }
示例#2
0
 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;
     }
 }