コード例 #1
0
 public UISurfacePanelController ShowOnGUI()
 {
     if (observer == null)
     {
         observer = UISurfacePanelController.InitializeSurfaceObserverScript();
     }
     else
     {
         observer.gameObject.SetActive(true);
     }
     observer.SetObservingSurface(this);
     return(observer);
 }
コード例 #2
0
 public UIObserver ShowOnGUI()
 {
     if (surfaceObserver == null)
     {
         surfaceObserver = Instantiate(Resources.Load <GameObject>("UIPrefs/surfaceObserver"), UIController.current.transform).GetComponent <UISurfacePanelController>();
     }
     else
     {
         surfaceObserver.gameObject.SetActive(true);
     }
     surfaceObserver.SetObservingSurface(this);
     return(surfaceObserver);
 }