void Init() { string strPrefab = "Common/Prefab/ScreenShot/UIScreenShotController"; GameObject obj = PrefabCache.main.Load(strPrefab); uiPrefab = obj.GetComponent <UIScreenShotController>(); }
void Init() { int v = Common.Bool2Int(false); PlayerPrefs.SetInt(AppVersion.STRING_KEY_APP_CHECK_FINISHED, v); AppCommon.USER_COMMENT_DAY_STEP = 100000; string strPrefab = "Common/Prefab/ScreenShot/UIScreenShotController"; GameObject obj = PrefabCache.main.Load(strPrefab); uiPrefab = obj.GetComponent <UIScreenShotController>(); }
public void CreateUI() { ui = (UIScreenShotController)GameObject.Instantiate(uiPrefab); ui.SetController(this); ViewControllerManager.ClonePrefabRectTransform(uiPrefab.gameObject, ui.gameObject); }